0.0.4 • Published 8 years ago

gitbook-plugin-fix-plugins-call v0.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Gitbook Plugin Fix plugin call

A gitbook plugin to fix plugins calls

Install

Add this to your book.json, then run gitbook install:

{
    "plugins": ["bibtex-indexed-cite"]
}

Why?

Currently gitbook-editor does not support inserting plugin syntax things without forcing to edit in markdown, which is pretty anoying.

To overcome this, instead of writing

{{ "whatever" | <filter> }}

I did write

`{{ "whatever" | <filter> }}`

So I can still edit in the normal tab, but this deactivates the plugin functionality.

This plugin parses those entries and fixes the surrounding ` characters

Setup

In your book.json add

{
	"pluginsConfig": {
		"fix-plugins-call": {
			"plugins": [ "<filter-one>", "<filter-two>", "..."]
		}
	}
}

Where every <filter> is a filter for a plugin call to fix