2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

FEATURE: support mark tag (#12088)

This commit adds support for `mark` tag for highlighting text content.
This commit is contained in:
Arpit Jalan 2021-02-15 21:47:30 +05:30 committed by GitHub
parent 4b05fc2d2d
commit 85c4e8fd32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 26 additions and 4 deletions

View file

@ -180,7 +180,7 @@ class HtmlToMarkdown
end
end
ALLOWED ||= %w{kbd del ins small big sub sup dl dd dt}
ALLOWED ||= %w{kbd del ins small big sub sup dl dd dt mark}
ALLOWED.each do |tag|
define_method("visit_#{tag}") do |node|
"<#{tag}>#{traverse(node)}</#{tag}>"