410dc252bcc5924dec4e78f943206ccb2ab2f979
4 * Fonctions utiles pour les wheels SPIP
6 * @SPIP\Textwheel\Wheel\SPIP\Fonctions
9 if (!defined('_ECRIRE_INC_VERSION')) {
13 include_spip('inc/texte');
16 * Callback pour les <math></math>
22 function replace_math($t) {
23 if (!function_exists('traiter_math')) {
24 include_spip('inc/math');
27 $t = traiter_math($t, '', true);
33 * Callback pour la puce qui est définissable/surchargeable
36 * Code HTML d'une puce
38 function replace_puce() {
41 $puce = "\n<br />" . definir_puce() . " ";
48 * Callback pour les Abbr
53 * [ABBR|abbrevation{lang}]
57 * Code HTML d'une abréviation
59 function inserer_abbr($m) {
60 $title = attribut_html($m[2]);
61 $lang = (isset($m[3]) ?
" lang=\"" . $m[3] . "\"" : "");
63 return "<abbr title=\"$title\"$lang>" . $m[1] . "</abbr>";