Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c861427

Browse files
committed
fix: blockquote
1 parent 74a6993 commit c861427

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

lua/leetcode-plugins/cn/normalizer.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function Normalizer:cleanup()
99
:gsub("<br%s*/>", "\n")
1010
:gsub("<meta[^>]*/>", "")
1111
:gsub("&nbsp;", " ")
12-
:gsub("<(/?)b([^>]*)>", "<%1strong%2>")
12+
:gsub("<(/?)b>", "<%1strong>")
1313
:gsub(":", "")
1414
end
1515

lua/leetcode-ui/group/tag/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ end
187187
function Tag:from(node)
188188
local tbl = {
189189
pre = req_tag("pre"),
190+
blockquote = req_tag("pre"),
190191
ul = req_tag("list.ul"),
191192
ol = req_tag("list.ol"),
192193
li = req_tag("li"),

lua/leetcode/parser/normalizer.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ function Normalizer:cleanup() --
1414
:gsub("<br%s*/>", "\n")
1515
:gsub("<meta[^>]*/>", "")
1616
:gsub("&nbsp;", " ")
17-
:gsub("<(/?)b([^>]*)>", "<%1strong%2>")
17+
-- :gsub("<(/?)b([^>]*)>", "<%1strong%2>")
18+
:gsub("<(/?)b>", "<%1strong>")
1819
-- :gsub("&#?%w+;", function(e) --
1920
-- return vim.tbl_keys({})
2021
-- end)

0 commit comments

Comments
 (0)