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:
parent
4b05fc2d2d
commit
85c4e8fd32
7 changed files with 26 additions and 4 deletions
|
@ -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}>"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue