Parcourir la source

Add <wbr> to definitions.py

Added to MediaWiki in ff74113bea (T54468).
tags/v0.5.2
Kunal Mehta il y a 6 ans
Parent
révision
e506380318
2 fichiers modifiés avec 5 ajouts et 4 suppressions
  1. +2
    -2
      mwparserfromhell/definitions.py
  2. +3
    -2
      mwparserfromhell/parser/ctokenizer/definitions.c

+ 2
- 2
mwparserfromhell/definitions.py Voir le fichier

@@ -56,8 +56,8 @@ INVISIBLE_TAGS = [
"section", "templatedata", "timeline"
]

# [mediawiki/core.git]/includes/Sanitizer.php @ 87a0aef762
SINGLE_ONLY = ["br", "hr", "meta", "link", "img"]
# [mediawiki/core.git]/includes/Sanitizer.php @ 065bec63ea
SINGLE_ONLY = ["br", "hr", "meta", "link", "img", "wbr"]
SINGLE = SINGLE_ONLY + ["li", "dt", "dd", "th", "td", "tr"]

MARKUP_TO_HTML = {


+ 3
- 2
mwparserfromhell/parser/ctokenizer/definitions.c Voir le fichier

@@ -45,11 +45,12 @@ static const char* PARSER_BLACKLIST[] = {
};

static const char* SINGLE[] = {
"br", "hr", "meta", "link", "img", "li", "dt", "dd", "th", "td", "tr", NULL
"br", "hr", "meta", "link", "img", "li", "dt", "dd", "th", "td", "tr",
"wbr", NULL
};

static const char* SINGLE_ONLY[] = {
"br", "hr", "meta", "link", "img", NULL
"br", "hr", "meta", "link", "img", "wbr", NULL
};

/*


Chargement…
Annuler
Enregistrer