gitbook-plugin-style
v1.0.4
Published
Add style to your texts
Downloads
4
Maintainers
Readme
gitbook-plugin-style
Conveniently add inline styles with nunjucks filter syntax.
Example
{{ "example text" | style("color:red") }}
Output
<span style="color:red">example text</span>
API
style(styleString, id=undefined, class=undefined)
Positional Arguments
styleString
Type: string
HTML inline style string
named arguments
id
Type: string
Additional id attribute.
class
Type: string
Additional class attribute.