Open bguiz opened 10 years ago
The use case that I am trying to satisfy is a means to add HTML fragments to the page after the markdown has been processed.
This can currently be achieved using the book.html.body:end
hook:
... except that I would like to insert within each page content (not at the close of the body tag, as they will not not visible).
Within <div class="page-inner">
would be great.
I have managed to work around it in the plugin I was creating:
https://github.com/bguiz/gitbook-plugin-share
... so you can de-prioritise this for now.
hook.page
claims that:See; https://github.com/GitbookIO/plugin/blob/master/index.js#L59
However, this is not the case -
page.content
really is just a string containing the markdown for the currently processed input file; which makes thepage
hook no different from thepage:before
hook. When implementing a plugin, add the following statement to each of the hooks to verify.