Bladeren bron

Merge pull request #200 from legoktm/wbr

Add <wbr> to definitions.py
tags/v0.5.2
Ben Kurtovic 6 jaren geleden
committed by GitHub
bovenliggende
commit
0df048424a
Geen bekende sleutel gevonden voor deze handtekening in de database GPG sleutel-ID: 4AEE18F83AFDEB23
2 gewijzigde bestanden met toevoegingen van 5 en 4 verwijderingen
  1. +2
    -2
      mwparserfromhell/definitions.py
  2. +3
    -2
      mwparserfromhell/parser/ctokenizer/definitions.c

+ 2
- 2
mwparserfromhell/definitions.py Bestand weergeven

@@ -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 Bestand weergeven

@@ -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
};

/*


Laden…
Annuleren
Opslaan