1.0.4 • Published 9 years ago

gitbook-plugin-style v1.0.4

Weekly downloads
13
License
MIT
Repository
github
Last release
9 years ago

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