소스 검색

Merge pull request #200 from legoktm/wbr

Add <wbr> to definitions.py
tags/v0.5.2
Ben Kurtovic 5 년 전
committed by GitHub
부모
커밋
0df048424a
No known key found for this signature in database 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
};

/*


불러오는 중...
취소
저장