浏览代码

Merge pull request #200 from legoktm/wbr

Add <wbr> to definitions.py
tags/v0.5.2
Ben Kurtovic 6 年前
committed by GitHub
父节点
当前提交
0df048424a
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 2 个文件被更改,包括 5 次插入4 次删除
  1. +2
    -2
      mwparserfromhell/definitions.py
  2. +3
    -2
      mwparserfromhell/parser/ctokenizer/definitions.c

+ 2
- 2
mwparserfromhell/definitions.py 查看文件

@@ -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 查看文件

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

/*


正在加载...
取消
保存