hugo/markup
Asanka Herath c9e679075f Add configuration options for pandoc
Current options are:

  markup:
    pandoc:
      filters:
        - list
        - of
        - filters
      extensions:
        - list
        - of
        - extensions
      extraArgs:
        - --extra-arguments
        - --one-per-line

Generalize some Pandoc options.

Support configuring a bibliography in markup config

Anonymous Update

[pandoc] Allow page parameters to override site parameters.

This allows specifying things like this in the page frontmatter:

    ---
    title: Something
    bibliography:
      source: mybibliography.bib
    pandoc:
      filter:
        - make-diagrams.lua
    ...

These options are local to the page. Specifying the same under `markup`
in the site configuration applies those settings to all pages.

Paths (filters, bibliography, citation style) are resolved relative to
the page, site, and the `static` folder.

[pandoc] Support metadata

Support specifying Pandoc metadata in the site configuration and page
configuration using the following syntax:

Site (in `config.yaml`):

    ```yaml
    markup:
        pandoc:
                metadata:
                        link-citations: true
    ```

Or in frontmatter:

    ```yaml
    ---
    pandoc:
        metadata:
                link-citations: true
    ...
    ```

[pandoc] Simplify path management.

No need for any fancy path lookup gymnastics. `pandoc`'s
`--resource-path` option does the legwork of locating resources on
multiple directories.

[pandoc] Don't use x != "" to denote failure.
2023-09-13 12:54:33 -04:00
..
asciidocext Replace the old log setup, with structured logging etc. 2023-06-18 13:03:04 +02:00
bibliography Add configuration options for pandoc 2023-09-13 12:54:33 -04:00
blackfriday Remove Blackfriday markdown engine 2022-05-29 11:50:58 +02:00
converter all: Fix comments for exported functions and packages 2023-05-18 21:25:27 +02:00
goldmark markup/goldmark: Add CJK extension 2023-08-30 13:08:45 +02:00
highlight deps: Fix Chroma dependency version 2023-07-31 21:01:43 +02:00
internal markup: Fix typo in function and struct names 2023-06-01 17:59:44 +02:00
markup_config Add configuration options for pandoc 2023-09-13 12:54:33 -04:00
org Replace the old log setup, with structured logging etc. 2023-06-18 13:03:04 +02:00
pandoc Add configuration options for pandoc 2023-09-13 12:54:33 -04:00
rst Don't panic on invalid security whitelist regexp 2023-06-28 08:57:28 +02:00
tableofcontents all: Fix comments for exported functions and packages 2023-05-18 21:25:27 +02:00
markup.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
markup_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00