diff options
author | https://id.koumbit.net/anarcat <https://id.koumbit.net/anarcat@web> | 2016-05-31 10:48:53 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2016-05-31 10:48:53 -0400 |
commit | 3abcb0f797753b0e486568047c78dcf45a2923ed (patch) | |
tree | f24773365146d2093413da317d348431104ef0f5 /doc/plugins/contrib | |
parent | 3e2c62a31de7efaf0febb166ceb00897353a5b71 (diff) | |
download | ikiwiki-3abcb0f797753b0e486568047c78dcf45a2923ed.tar ikiwiki-3abcb0f797753b0e486568047c78dcf45a2923ed.tar.gz |
tagging htmlizing
Diffstat (limited to 'doc/plugins/contrib')
-rw-r--r-- | doc/plugins/contrib/bibtex2html.mdwn | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/plugins/contrib/bibtex2html.mdwn b/doc/plugins/contrib/bibtex2html.mdwn index 0fad121b7..fc3034326 100644 --- a/doc/plugins/contrib/bibtex2html.mdwn +++ b/doc/plugins/contrib/bibtex2html.mdwn @@ -1,4 +1,5 @@ [[!template id=plugin name=bibtex2html author="[[anarcat]]"]] +[[!tag type/format]] Trivial plugin to implement [[todo/BibTeX]] support simply using [bibtex2html](https://www.lri.fr/~filliatr/bibtex2html/). It only takes a `bib` file as an argument and dumps whatever bibtex2html returns for it, so it shows *all* the entries, something that is not really possible with the existing [[bibtex]] plugin, as that one requires you to explicitly state every citation you want to show. @@ -56,6 +57,8 @@ sub bibtex2html { 1; """]] +This could be extended to process `.bib` files directly as source files instead of injecting them in the HTML like this. + The plugin is generic enough that it could be abstracted to do more than just `bibtex2html`, in a manner similar to the [[compile]] plugin. Unfortunately, the [[compile]] plugin gives too much power to the user providing input to the wiki, which can modify even the commands being run in the directives. There is therefore some room here to make generic preprocessor or even htmlize plugin that would take a hash of `extension` -> `command` configuration to turn (say) `.bib` or `.tex` files into HTML or PDF or whatever you fancy. Obviously, this very plugin should have been implemented with Text::Bibtex because forking to `bibtex2html` is expensive. Yet I haven't found a way to do what this plugin does with the existing [[bibtex]] module. [[bibtex]] could of course be extended and then render this plugin obsolete, but I have found it simpler to just reuse an existing working rendered than rewrite my own in Perl. --[[anarcat]] |