Changeset 84592 in spip-zone


Ignore:
Timestamp:
Sep 14, 2014, 8:32:03 AM (5 years ago)
Author:
cedric@…
Message:

Ajout des balises HTML5 de type block : article, aside, section, header, footer, nav, hgroup

Location:
_core_/plugins/textwheel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/textwheel/paquet.xml

    r84591 r84592  
    22        prefix="tw"
    33        categorie="edition"
    4         version="0.9.16"
     4        version="0.9.17"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.1.*]"
  • _core_/plugins/textwheel/wheels/spip/spip-paragrapher.php

    r84584 r84592  
    1818 */
    1919function fermer_para_mano(&$t) {
    20         # match: ",<p (.*)<(/?)(STOP P|div|pre|ul|ol|li|blockquote|h[1-6r]|t(able|[rdh]|head|body|foot|extarea)|form|object|center|marquee|address|applet|iframe|figure|figcaption|d[ltd]|script|noscript|map|button|fieldset|style)\b,UimsS"
     20        # match: ",<p (.*)<(/?)(stop p|div|section|pre|ul|ol|li|article|aside|blockquote|h[1-6r]|hgroup|header|t(able|[rdh]|head|body|foot|extarea)|footer|form|object|nav|center|marquee|address|applet|iframe|fig(ure|caption)|d[ltd]|script|noscript|map|button|fieldset|style)\b,UimsS"
    2121        # replace: "\n<p "+trim($1)+"</p>\n<$2$3"
    2222
     
    2929                                        $pi = strtolower($p);
    3030                                        if (preg_match(
    31                                         ",</?(?:stop p|div|pre|ul|ol|li|blockquote|h[1-6r]|t(able|[rdh]|head|body|foot|extarea)|form|object|center|marquee|address|applet|iframe|figure|figcaption|d[ltd]|script|noscript|map|button|fieldset|style)\b,S",
     31                                                ",</?(?:stop p|div|section|pre|ul|ol|li|article|aside|blockquote|h[1-6r]|hgroup|header|t(able|[rdh]|head|body|foot|extarea)|footer|form|object|nav|center|marquee|address|applet|iframe|fig(ure|caption)|d[ltd]|script|noscript|map|button|fieldset|style)\b,S",
    3232                                        $pi, $r)) {
    3333                                                $pos = strpos($pi, $r[0]);
  • _core_/plugins/textwheel/wheels/spip/spip-paragrapher.yaml

    r84585 r84592  
    1717    # toujours ouvrir un parapgraphe derriere une balise bloc fermante
    1818    if_str: "</"
    19     match: ",</(?:div|pre|ul|ol|li|blockquote|h[1-6r]|t(able|[rdh]|head|body|foot|extarea)|form|object|center|marquee|address|applet|iframe|figure|figcaption|d[ltd]|script|noscript|map|button|fieldset|style)[^>]*>\s*?,UimsS"
     19    match: ",</(?:div|section|pre|ul|ol|li|article|aside|blockquote|h[1-6r]|hgroup|header|t(able|[rdh]|head|body|foot|extarea)|footer|form|object|nav|center|marquee|address|applet|iframe|fig(ure|caption)|d[ltd]|script|noscript|map|button|fieldset|style)[^>]*>\s*?,UimsS"
    2020    replace: "$0<p>"
    2121
     
    4747    # en reperant les balises blocs XHTML
    4848    # en pure wheel : le \s* agit comme trim() et remplace reduire-blancs2
    49     match: ",<p (.*)\s*<(/?)(STOP P|div|pre|ul|ol|li|blockquote|h[1-6r]|t(able|[rdh]|head|body|foot|extarea)|form|object|center|marquee|address|applet|iframe|figure|figcaption|d[ltd]|script|noscript|map|button|fieldset|style)\b,UimsS"
     49    match: ",<p (.*)\s*<(/?)(stop p|div|section|pre|ul|ol|li|article|aside|blockquote|h[1-6r]|hgroup|header|t(able|[rdh]|head|body|foot|extarea)|footer|form|object|nav|center|marquee|address|applet|iframe|fig(ure|caption)|d[ltd]|script|noscript|map|button|fieldset|style)\b,UimsS"
    5050    replace: "<p $1</p>\n<$2$3"
    5151    disabled: Y
Note: See TracChangeset for help on using the changeset viewer.