aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins
diff options
context:
space:
mode:
authorhttps://id.koumbit.net/anarcat <https://id.koumbit.net/anarcat@web>2016-05-31 10:41:46 -0400
committeradmin <admin@branchable.com>2016-05-31 10:41:46 -0400
commitfab2dbb2f4cb9cb531e5b7a0cd5aa9b74f5d856e (patch)
treecf78875e372e8f2d59807f5d5d1b8188bebc9857 /doc/plugins
parente14d8beedfa0cc7758451d4247b54d4d032e22c5 (diff)
downloadikiwiki-fab2dbb2f4cb9cb531e5b7a0cd5aa9b74f5d856e.tar
ikiwiki-fab2dbb2f4cb9cb531e5b7a0cd5aa9b74f5d856e.tar.gz
move comment at the end
Diffstat (limited to 'doc/plugins')
-rw-r--r--doc/plugins/contrib/bibtex2html.mdwn4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/plugins/contrib/bibtex2html.mdwn b/doc/plugins/contrib/bibtex2html.mdwn
index 5432ea3cc..f5efd93c1 100644
--- a/doc/plugins/contrib/bibtex2html.mdwn
+++ b/doc/plugins/contrib/bibtex2html.mdwn
@@ -4,8 +4,6 @@ Trivial plugin to implement [[todo/BibTeX]] support simply using [bibtex2html](h
It is hopefully secure enough, but I have still marked it as unsafe because I am worried about parameter expansion in bibtex calls from bibtex2html that wouldn't escape those characters properly. The pipeline is called safely, but certain `-flags` could be maliciously added to the filenames somehow.
-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.
-
[[!format perl """
#!/usr/bin/perl
package IkiWiki::Plugin::bibtex2html;
@@ -58,4 +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.
+
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]]