gitbook-plugin-style

Add some variety to your text.

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.

License

MIT license