diff options
author | https://id.koumbit.net/anarcat <https://id.koumbit.net/anarcat@web> | 2016-05-31 10:45:43 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2016-05-31 10:45:43 -0400 |
commit | 3e2c62a31de7efaf0febb166ceb00897353a5b71 (patch) | |
tree | 76c1419c5c8130054c7bc0e78e7967364b86b988 | |
parent | fab2dbb2f4cb9cb531e5b7a0cd5aa9b74f5d856e (diff) | |
download | ikiwiki-3e2c62a31de7efaf0febb166ceb00897353a5b71.tar ikiwiki-3e2c62a31de7efaf0febb166ceb00897353a5b71.tar.gz |
expand on the compile review and future work
-rw-r--r-- | doc/plugins/contrib/bibtex2html.mdwn | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/plugins/contrib/bibtex2html.mdwn b/doc/plugins/contrib/bibtex2html.mdwn index f5efd93c1..0fad121b7 100644 --- a/doc/plugins/contrib/bibtex2html.mdwn +++ b/doc/plugins/contrib/bibtex2html.mdwn @@ -56,6 +56,6 @@ sub bibtex2html { 1; """]] -The plugin is generic enough that I wonder if there's a level of abstraction that exists here that I have missed. If not it would be interesting to add. Update: that tool is the [[compile]] plugin, darn it. I guess the next step here is to review that plugin and figure out how to do exactly this with just the `compile` configuration. Yet this works for me now so I'm unlikely to do that in the short term. +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 should be implemented through Text::Bibtex as forking 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]] +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]] |