Skip to content

Latest commit

 

History

History
51 lines (25 loc) · 1.07 KB

10-emphasize.md

File metadata and controls

51 lines (25 loc) · 1.07 KB

emphasize 文字底色

这个插件可以给书籍中的文本内容加上特定的文字底色效果

配置使用方法:

{
    "plugins": ["emphasize"]
}

简单的使用示例(markdown书籍中内容中):

This text is {% em %}highlighted !{% endem %}

This text is {% em %}highlighted with **markdown**!{% endem %}

This text is {% em type="green" %}highlighted in green!{% endem %}

This text is {% em type="red" %}highlighted in red!{% endem %}

This text is {% em color="#ff0000" %}highlighted with a custom color!{% endem %}

插件 Github 地址:https://github.com/GitbookIO/plugin-emphasize

效果预览:

This text is {% em %}highlighted !{% endem %}

This text is {% em %}highlighted with markdown!{% endem %}

This text is {% em type="green" %}highlighted in green!{% endem %}

This text is {% em type="red" %}highlighted in red!{% endem %}

This text is {% em color="#ff0000" %}highlighted with a custom color!{% endem %}