]> git.g-eek.se Git - ikiwiki-pandoc.git/log
ikiwiki-pandoc.git
4 years agoFeature. Provide sets of meta keys for inclusion meta-parsing
Gustav Eek [Mon, 20 Jan 2020 17:42:59 +0000 (18:42 +0100)]
Feature. Provide sets of meta keys for inclusion

Add further lists of meta keys to include (*hash_meta_keys*
and *list_hash_meta_keys*), add them to the *list_meta* map in
subroutine *htmlize* and provide them to *pagestate* *meta*.

This makes available, e.g. the *reference* attribute in page
templates.

The commit require some explanation.

Until now, meta attributes were available as

 * Bolean meta (*bool_meta*)
 * Scalar meta (*scalar_meta*)
 * List meta (*list_meta*)

All meta attributes in documents are provided as page template
variables with a 'pandoc_'-prefix. On top of that, attributes listed
in *scalar_meta_keys* are made available as regular template
variables, without prefix.

Lists are problematic. Pure lists are pushed with 'pandoc_' prefix,
but they can not be used. The alternative would be via loops (see
<https://metacpan.org/pod/HTML::Template#TMPL_LOOP>), but inside loops
one need to call for a variable and the pushed attribute does not
provide one.

This commit properly makes available the *reference* attribute, which
is of type list of associated list. This construct actually fully
natural fulfil the limitations of lists. Template loops generate the
items, whose values are available with keys as variable names:

    ---
    references:
     - id: refone
       title: Ref-MetaInlines-in-MetaList
     - id: reftwo
       title: Ref-MetaInlines-in-MetaList
    ...

Which is called like this:

    <TMPL_IF REFERENCES>
      <TMPL_LOOP REFERENCES>
         <TMPL_VAR ID>
         <TMPL_VAR TITLE>
      </TMPL_LOOP>
    </TMPL_IF>

How is hacky. The items in *hash_meta_keys* and *list_hash_meta_keys*
are added to *list_meta_keys* and undergo the list processing. The
list processing contradictory adopted better for *list_hash_meta_keys*
than for *list_meta_keys*.

4 years agoFeature. Push listed meta variables to template.
Gustav Eek [Mon, 20 Jan 2020 17:36:08 +0000 (18:36 +0100)]
Feature. Push listed meta variables to template.

In function *pagetemplate*, template variables are added as pandas_*
variables. This fix provides also those listed as scalar and list meta
keys without the Pandoc prefix.

4 years agoFeature. Support of complex meta structures
Gustav Eek [Mon, 20 Jan 2020 17:30:31 +0000 (18:30 +0100)]
Feature. Support of complex meta structures

Add support in *unwrap_c* for support of the structure: *MetaList*
with 2 x *MetaMap* with keys pointing to *MetaInlines*:

    ---
    references:
     - id: refone
       title: Ref-MetaInlines-in-MetaList
     - id: reftwo
       title: Ref-MetaInlines-in-MetaList
    ...

Actually it sounds complex but this fix should also be needed for the
simpler example of *MetaMap* with keys pointing at *MetaInlines*:

    ---
    experiment:
     key_first: Värde
     key_second: värde
    ...

4 years agoRefactor. Return explicit from pagetemplate sub
Gustav Eek [Mon, 20 Jan 2020 17:51:20 +0000 (18:51 +0100)]
Refactor. Return explicit from pagetemplate sub

4 years agoRefactor. Move lists of meta labels to promote to top of file
Gustav Eek [Mon, 20 Jan 2020 17:27:34 +0000 (18:27 +0100)]
Refactor. Move lists of meta labels to promote to top of file

4 years agoGitignore update
Gustav Eek [Mon, 20 Jan 2020 17:11:28 +0000 (18:11 +0100)]
Gitignore update

5 years agoMerge pull request #23 from mletterle/format-arg
Baldur Kristinsson [Sat, 2 Feb 2019 18:52:47 +0000 (18:52 +0000)]
Merge pull request #23 from mletterle/format-arg

Allow specification of pandoc markdown format

5 years agoMerge pull request #22 from mletterle/meta-fix
Baldur Kristinsson [Sat, 2 Feb 2019 18:51:37 +0000 (18:51 +0000)]
Merge pull request #22 from mletterle/meta-fix

Correct capitalization of meta

5 years agoAllow specification of pandoc markdown format
Michael Letterle [Sat, 2 Feb 2019 17:55:18 +0000 (12:55 -0500)]
Allow specification of pandoc markdown format

This allows for the disabling and enabling of Pandoc extensions.

Notably it allows one to specify `markdown-space_in_atx_header-startnum`
which corresponds with some of the old ikiwiki markdown behavior.

5 years agoCorrect capitalization of meta
Michael Letterle [Sat, 2 Feb 2019 17:54:04 +0000 (12:54 -0500)]
Correct capitalization of meta

This is needed at least for Pandoc 2.5

6 years agoMerge pull request #19 from openmedi/master
Baldur Kristinsson [Wed, 26 Sep 2018 09:32:18 +0000 (09:32 +0000)]
Merge pull request #19 from openmedi/master

Change Meta to meta and make @bk's code work

6 years agoMerge branch 'master' of github.com:openmedi/ikiwiki-pandoc
Martin Hhnel [Sat, 20 Jan 2018 20:36:22 +0000 (21:36 +0100)]
Merge branch 'master' of github.com:openmedi/ikiwiki-pandoc

6 years agodeleted --normalize argument which is not needed anymore
Martin Hhnel [Sat, 20 Jan 2018 20:31:58 +0000 (21:31 +0100)]
deleted --normalize argument which is not needed anymore

7 years agochanged line 439 from Meta to meta, now 1.18+ works
Martin Hähnel [Fri, 14 Jul 2017 17:08:26 +0000 (19:08 +0200)]
changed line 439 from Meta to meta, now 1.18+ works

7 years agochanged line 439 from Meta to meta, now 1.18+ works
Martin Hähnel [Fri, 14 Jul 2017 17:06:30 +0000 (19:06 +0200)]
changed line 439 from Meta to meta, now 1.18+ works

8 years agov0.5.1 in Changelog
Baldur Kristinsson [Sun, 6 Nov 2016 14:25:54 +0000 (14:25 +0000)]
v0.5.1 in Changelog

8 years agoCompatibility with pandoc 1.18+
Baldur Kristinsson [Sun, 6 Nov 2016 14:24:14 +0000 (14:24 +0000)]
Compatibility with pandoc 1.18+

8 years agoTagging v0.4.3 and v0.5; added to changelog
Baldur Kristinsson [Tue, 5 Jul 2016 12:16:54 +0000 (12:16 +0000)]
Tagging v0.4.3 and v0.5; added to changelog

8 years agoAdded lollipopman to AUTHORS; documentation change
Baldur Kristinsson [Tue, 5 Jul 2016 12:03:49 +0000 (12:03 +0000)]
Added lollipopman to AUTHORS; documentation change

8 years agoMerge pull request #14 from lollipopman/master
Baldur Kristinsson [Tue, 28 Jun 2016 16:04:21 +0000 (16:04 +0000)]
Merge pull request #14 from lollipopman/master

Add pandoc_html_extra_options

8 years agoAdd pandoc_html_extra_options
lollipopman [Tue, 21 Jun 2016 14:04:08 +0000 (14:04 +0000)]
Add pandoc_html_extra_options

This allows you to add other options to pandoc when exporting html.

Useful when adding '--toc' or other pandoc options.

8 years agoFixed mangled sentence wrt updating
Baldur Kristinsson [Wed, 1 Jun 2016 08:37:14 +0000 (08:37 +0000)]
Fixed mangled sentence wrt updating

8 years agoAdd section on updating ikiwiki-pandoc
Baldur Kristinsson [Mon, 30 May 2016 20:54:43 +0000 (20:54 +0000)]
Add section on updating ikiwiki-pandoc

8 years agoFix issue with inline directives
Baldur Kristinsson [Sat, 23 Apr 2016 20:31:50 +0000 (20:31 +0000)]
Fix issue with inline directives

8 years agoExport options tweaking
Baldur Kristinsson [Sun, 14 Feb 2016 17:40:07 +0000 (17:40 +0000)]
Export options tweaking

* Add pandoc_pdf_export_cleanup option, false by default.
* Correct specification of some configuration options related to export.

8 years agoMajor improvements to the export support.
Baldur Kristinsson [Wed, 3 Feb 2016 14:52:55 +0000 (14:52 +0000)]
Major improvements to the export support.

* Add support for per-page configuration for export formats.
* Add support for biblatex/natbib in latex/pdf/beamer output.
* Fix handling of docx and odt *_template option.

8 years agoAdded revealjs to export formats
Baldur Kristinsson [Tue, 2 Feb 2016 11:23:20 +0000 (11:23 +0000)]
Added revealjs to export formats

8 years agoAdded documentation for export options
Baldur Kristinsson [Tue, 2 Feb 2016 10:03:34 +0000 (10:03 +0000)]
Added documentation for export options

8 years agoAdded formats latex, beamer, epub. Added config options
Baldur Kristinsson [Mon, 1 Feb 2016 15:48:25 +0000 (15:48 +0000)]
Added formats latex, beamer, epub. Added config options

8 years agoRough support for PDF, ODT and DOCX export
Baldur Kristinsson [Sun, 31 Jan 2016 23:44:33 +0000 (23:44 +0000)]
Rough support for PDF, ODT and DOCX export

8 years agoMerge branch 'master' of github.com:sciunto-org/ikiwiki-pandoc
François Boulogne [Sun, 31 Jan 2016 20:30:21 +0000 (15:30 -0500)]
Merge branch 'master' of github.com:sciunto-org/ikiwiki-pandoc

8 years agonew release 0.2.1
François Boulogne [Sun, 31 Jan 2016 20:28:47 +0000 (15:28 -0500)]
new release 0.2.1

8 years agoMerge pull request #10 from bk/csl-default-lang
François Boulogne [Thu, 28 Jan 2016 13:50:16 +0000 (08:50 -0500)]
Merge pull request #10 from bk/csl-default-lang

Add new configuration option: pandoc_csl_default_lang

8 years agoAdd new configuration option for citations processing: pandoc_csl_default_lang
Baldur Kristinsson [Thu, 28 Jan 2016 13:44:51 +0000 (13:44 +0000)]
Add new configuration option for citations processing: pandoc_csl_default_lang

8 years agoupdate changelog
François Boulogne [Tue, 26 Jan 2016 13:26:14 +0000 (08:26 -0500)]
update changelog

8 years agoMerge pull request #7 from bk/minor-improvements-jan16
François Boulogne [Tue, 26 Jan 2016 13:14:02 +0000 (08:14 -0500)]
Merge pull request #7 from bk/minor-improvements-jan16

Minor improvements

8 years agoAvoid 'Use of unitialized value' warning when 'pandoc_math' is not configured
Baldur Kristinsson [Tue, 26 Jan 2016 08:46:50 +0000 (08:46 +0000)]
Avoid 'Use of unitialized value' warning when 'pandoc_math' is not configured

8 years agoMake more options available in web config; make meta variables visible in templates
Baldur Kristinsson [Tue, 26 Jan 2016 08:42:18 +0000 (08:42 +0000)]
Make more options available in web config; make meta variables visible in templates

8 years agoenhance metadata for the project
François Boulogne [Fri, 18 Dec 2015 19:14:31 +0000 (14:14 -0500)]
enhance metadata for the project

8 years agoremove unused library
François Boulogne [Fri, 18 Dec 2015 19:05:53 +0000 (14:05 -0500)]
remove unused library

8 years agoenhance install procedure
François Boulogne [Fri, 18 Dec 2015 19:05:26 +0000 (14:05 -0500)]
enhance install procedure

8 years agoMerge pull request #5 from bk/bring-uptodate
François Boulogne [Fri, 18 Dec 2015 18:52:59 +0000 (13:52 -0500)]
Merge pull request #5 from bk/bring-uptodate

Bring plugin up-to-date with recent versions of Pandoc

8 years agoCorrect OPML extension, move pandoc_latex up
Baldur Kristinsson [Mon, 14 Dec 2015 13:09:28 +0000 (13:09 +0000)]
Correct OPML extension, move pandoc_latex up

8 years agoUpdated README
Baldur Kristinsson [Mon, 14 Dec 2015 13:03:15 +0000 (13:03 +0000)]
Updated README

8 years agoRemove obsolete templates
Baldur Kristinsson [Sun, 13 Dec 2015 00:51:42 +0000 (00:51 +0000)]
Remove obsolete templates

8 years agoAdd pandoc_* parameters to template context
Baldur Kristinsson [Sun, 13 Dec 2015 00:50:08 +0000 (00:50 +0000)]
Add pandoc_* parameters to template context

8 years agoReplacement page template with support for all math rendering modes
Baldur Kristinsson [Sun, 13 Dec 2015 00:49:07 +0000 (00:49 +0000)]
Replacement page template with support for all math rendering modes

8 years agoHarmonize ikiwiki-pandoc with recent versions of pandoc
Baldur Kristinsson [Fri, 11 Dec 2015 00:08:00 +0000 (00:08 +0000)]
Harmonize ikiwiki-pandoc with recent versions of pandoc

- Parse YAML meta blocks and correct parsing of old-style
  meta block (title, author, date).
- Improve bibliography/citation support.
- Get rid of deprecated `--html5` parameter.
- Add support for Org and OPML files.
- Improve math support.
- Add filter support.
- New options in *.setup file: pandoc_citeproc, pandoc_org,
  pandoc_opml, pandoc_math_custom_js, pandoc_filters.

8 years agoMerge pull request #4 from bk/fix-unrecognized-char-error
François Boulogne [Thu, 10 Dec 2015 01:24:59 +0000 (20:24 -0500)]
Merge pull request #4 from bk/fix-unrecognized-char-error

Fix 'unrecognized character' error and warnings about defined(@array)

8 years agoFix 'unrecognized character' error and warnings about defined(@array)
Baldur Kristinsson [Thu, 10 Dec 2015 00:04:42 +0000 (00:04 +0000)]
Fix 'unrecognized character' error and warnings about defined(@array)

9 years agoFIX error on Debian Jessie
François Boulogne [Fri, 21 Aug 2015 19:19:43 +0000 (21:19 +0200)]
FIX error on Debian Jessie

11 years agoadd FAQ mathjax + https
François Boulogne [Tue, 20 Aug 2013 16:43:03 +0000 (18:43 +0200)]
add FAQ mathjax + https

11 years agoMerge branch 'master' of github.com:sciunto/ikiwiki-pandoc
François Boulogne [Sun, 4 Aug 2013 21:33:43 +0000 (23:33 +0200)]
Merge branch 'master' of github.com:sciunto/ikiwiki-pandoc

11 years agoadd link to ikiwiki doc
François Boulogne [Sun, 4 Aug 2013 21:32:45 +0000 (23:32 +0200)]
add link to ikiwiki doc

11 years agoadd CSS
François Boulogne [Fri, 10 May 2013 07:10:07 +0000 (09:10 +0200)]
add CSS

11 years agoadd author
François Boulogne [Sat, 4 May 2013 20:05:55 +0000 (22:05 +0200)]
add author

11 years agoMerge remote-tracking branch 'bk/master'
François Boulogne [Sat, 4 May 2013 20:01:07 +0000 (22:01 +0200)]
Merge remote-tracking branch 'bk/master'

Conflicts:
pandoc.pm

11 years agoadd author
François Boulogne [Sat, 4 May 2013 19:48:41 +0000 (21:48 +0200)]
add author

11 years agoMerge remote-tracking branch 'rburgoyne/master'
François Boulogne [Sat, 4 May 2013 19:47:47 +0000 (21:47 +0200)]
Merge remote-tracking branch 'rburgoyne/master'

Conflicts:
.gitignore
pandoc.pm

11 years agoimport readme
François Boulogne [Sat, 4 May 2013 19:39:05 +0000 (21:39 +0200)]
import readme

11 years agoadd sources
François Boulogne [Sat, 4 May 2013 18:56:08 +0000 (20:56 +0200)]
add sources

11 years agoadd license
François Boulogne [Sat, 4 May 2013 18:53:15 +0000 (20:53 +0200)]
add license

11 years agoInitial commit
François Boulogne [Sat, 4 May 2013 18:49:18 +0000 (11:49 -0700)]
Initial commit

11 years agoMerge branch 'master' of https://github.com/rburgoyne/pandoc-iki
Ryan Burgoyne [Mon, 25 Feb 2013 20:32:42 +0000 (13:32 -0700)]
Merge branch 'master' of https://github.com/rburgoyne/pandoc-iki

11 years agoadded error handling to avoid error message about uninitialized value in concatenation
Ryan Burgoyne [Mon, 25 Feb 2013 20:32:27 +0000 (13:32 -0700)]
added error handling to avoid error message about uninitialized value in concatenation

11 years agoRemoved quotemeta() function. It didn't solve the problem and added visible escape...
Ryan Burgoyne [Mon, 25 Feb 2013 20:28:35 +0000 (13:28 -0700)]
Removed quotemeta() function. It didn't solve the problem and added visible escape characters to the HTML title. For now, if you want to surrount your title with quotation marks, you will have to put backslashes in front of them.

11 years agoFixed bug that kept the author from being properly stored and used the quotemeta...
Ryan Burgoyne [Mon, 25 Feb 2013 20:14:32 +0000 (13:14 -0700)]
Fixed bug that kept the author from being properly stored and used the quotemeta() function on the final meta values before passing them to pagestate so that special characters will also work.

11 years agoAdded handling to the new open2 process to make sure it terminated
Ryan S. Burgoyne [Mon, 25 Feb 2013 15:39:31 +0000 (08:39 -0700)]
Added handling to the new open2 process to make sure it terminated

11 years agoChanged method for string compilation from JSON array. Now it handles symbols correct...
Ryan Burgoyne [Fri, 22 Feb 2013 19:37:48 +0000 (12:37 -0700)]
Changed method for string compilation from JSON array. Now it handles symbols correctly instead of surrounding them with spaces as if they were an extra word.

11 years agoCheck that meta values are not empty before applying them.
Ryan Burgoyne [Wed, 20 Feb 2013 23:49:39 +0000 (16:49 -0700)]
Check that meta values are not empty before applying them.

11 years agoAdded capability to parse out pandoc title blocks and use them for meta information.
Ryan Burgoyne [Wed, 20 Feb 2013 23:30:48 +0000 (16:30 -0700)]
Added capability to parse out pandoc title blocks and use them for meta information.

11 years agoFix bibliography/csl parameters; update html5 support; support multiple Markdown...
Baldur Kristinsson [Tue, 12 Feb 2013 13:59:55 +0000 (13:59 +0000)]
Fix bibliography/csl parameters; update html5 support; support multiple Markdown file extensions

11 years agoAdded support for textile and mediawiki formats and options for bibliography/csl
Baldur Kristinsson [Tue, 12 Feb 2013 11:32:11 +0000 (11:32 +0000)]
Added support for textile and mediawiki formats and options for bibliography/csl

11 years agoGive README file a .md extension
Baldur Kristinsson [Tue, 12 Feb 2013 10:42:31 +0000 (10:42 +0000)]
Give README file a .md extension

13 years agomore README tweaks
Jim Pryor [Wed, 1 Jun 2011 13:54:08 +0000 (09:54 -0400)]
more README tweaks

Signed-off-by: Jim Pryor <profjim@jimpryor.net>
13 years agoREADME tweaks
Jim Pryor [Wed, 1 Jun 2011 13:53:01 +0000 (09:53 -0400)]
README tweaks

Signed-off-by: Jim Pryor <profjim@jimpryor.net>
13 years agofix string comparison, release 1.0
Jim Pryor [Wed, 1 Jun 2011 13:06:26 +0000 (09:06 -0400)]
fix string comparison, release 1.0

Signed-off-by: Jim Pryor <profjim@jimpryor.net>
13 years agotweak README
Jim Pryor [Wed, 1 Jun 2011 12:53:59 +0000 (08:53 -0400)]
tweak README

Signed-off-by: Jim Pryor <profjim@jimpryor.net>
13 years agoignore more stuff
Jim Pryor [Wed, 1 Jun 2011 12:17:35 +0000 (08:17 -0400)]
ignore more stuff

Signed-off-by: Jim Pryor <profjim@jimpryor.net>
13 years agoadd latexmathml template
Jim Pryor [Wed, 1 Jun 2011 12:14:59 +0000 (08:14 -0400)]
add latexmathml template

Signed-off-by: Jim Pryor <profjim@jimpryor.net>
13 years agoadd jsmath template
Jim Pryor [Wed, 1 Jun 2011 12:14:35 +0000 (08:14 -0400)]
add jsmath template

Signed-off-by: Jim Pryor <profjim@jimpryor.net>
13 years agoadd mathjax template
Jim Pryor [Wed, 1 Jun 2011 12:14:08 +0000 (08:14 -0400)]
add mathjax template

Signed-off-by: Jim Pryor <profjim@jimpryor.net>
13 years agoadd mathml js and template
Jim Pryor [Wed, 1 Jun 2011 12:13:41 +0000 (08:13 -0400)]
add mathml js and template

Signed-off-by: Jim Pryor <profjim@jimpryor.net>
13 years agoupdate README
Jim Pryor [Wed, 1 Jun 2011 12:12:59 +0000 (08:12 -0400)]
update README

Signed-off-by: Jim Pryor <profjim@jimpryor.net>
13 years agoadd plugin
Jim Pryor [Wed, 1 Jun 2011 12:12:53 +0000 (08:12 -0400)]
add plugin

Signed-off-by: Jim Pryor <profjim@jimpryor.net>
13 years agoadd .gitignore
Jim Pryor [Wed, 1 Jun 2011 12:11:48 +0000 (08:11 -0400)]
add .gitignore

Signed-off-by: Jim Pryor <profjim@jimpryor.net>
13 years agofirst commit
Jim Pryor [Wed, 1 Jun 2011 12:08:06 +0000 (08:08 -0400)]
first commit