mirror of
https://github.com/ustc-zzzz/mcbbs-markdown2bbcode-converter.git
synced 2025-01-18 19:13:57 +08:00
为改为白色底色的 MCBBS 适配新的 codespan 底色
目前的 mcbbs-markdown2bbcode-converter 在渲染代码段的底色时, 是按照旧版本 MCBBS 的棕色底色,将代码段的颜色取为深棕色 `#ebddc0`。 现在 MCBBS 将底色默认改为白色,深棕色的代码段在网页上看起来已经比较奇怪了。 出于这种考虑,我将 codespan 的底色改为 GitHub 渲染代码段的底色,浅灰色 `f6f8fa`。
This commit is contained in:
parent
99c4c8e921
commit
a904215b52
@ -36,7 +36,7 @@
|
||||
"tablecell": "[td]${header?'[b]'+content+'[/b]':content}[/td]",
|
||||
"strong": "[b]${text}[/b]",
|
||||
"em": "[i]${text}[/i]",
|
||||
"codespan": "[font=Monaco,Consolas,'Lucida Console','Courier New',serif][backcolor=#ebddc0]${code}[/backcolor][/font]",
|
||||
"codespan": "[font=Monaco,Consolas,'Lucida Console','Courier New',serif][backcolor=#f6f8fa]${code}[/backcolor][/font]",
|
||||
"br": "[br][br]",
|
||||
"del": "[s]${text}[/s]",
|
||||
"link": "[url=${href}]${text}[/url]",
|
||||
@ -58,7 +58,7 @@
|
||||
"tablecell": "[td]${header?'[b]'+content+'[/b]':content}[/td]",
|
||||
"strong": "[b]${text}[/b]",
|
||||
"em": "[i]${text}[/i]",
|
||||
"codespan": "[font=Monaco,Consolas,'Lucida Console','Courier New',serif][backcolor=#ebddc0]${code}[/backcolor][/font]",
|
||||
"codespan": "[font=Monaco,Consolas,'Lucida Console','Courier New',serif][backcolor=#f6f8fa]${code}[/backcolor][/font]",
|
||||
"br": "[br][br]",
|
||||
"del": "[s]${text}[/s]",
|
||||
"link": "[url=${href}]${text}[/url]",
|
||||
|
Loading…
Reference in New Issue
Block a user