hugo-fixit / FixIt

🔧 A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
https://fixit.lruihao.cn
MIT License
819 stars 110 forks source link

[FEATURE] add more type marked text support #534

Closed Lruihao closed 3 weeks ago

Lruihao commented 3 weeks ago

The extended marked text syntax supports 6 types of Marked Text.

[!WARNING] This is experimental syntax highlighting for the marked texts.

==Primary==[primary]
==Secondary==[secondary]
==Success==[success]
==Info==[info]
==Warning==[warning]
==Danger==[danger]

The rendered output looks like this:

QQ_1730695554639

Unless you customize marked text, any unsupported type defaults to the default type.

==This is a custom type with pink color.==[pink]

The rendered output looks like this:

QQ_1730695580633

The HTML looks like this:

<mark class="mark-pink">This is a custom type with pink color.</mark>