Skip to content

zachary822/gitbook-plugin-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published