hugo-fixit / FixIt

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

[FEATURE] add more type marked text support #534

Closed Lruihao closed 1 day ago

Lruihao commented 3 days 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>