Skip to content

+citations should be enabled in GFM and better documented #9060

Open
@VladimirAlexiev

Description

@VladimirAlexiev

Describe your proposed improvement and the problem it solves.

I think the citations extension should be available and enabled for gfm input, just like it's enabled in markdown and available in markdown_github (which is deprecated).

  • In Github, @ is used to ping somebody, but such feature is not applicable to documents, so it's safe to repurpose @ for citations.
  • GFM is very widely used by developers, so we have "muscle memory" for some extensions enabled with it, in particular +autolink_bare_uris+pipe_tables

Even if this suggestion is rejected, the documentation of citations should be much improved. Currently it only talks about org, so I ignored it. But it should describe in which formats it is available

Describe alternatives you've considered.

I figured this out after much searching in the discussion group (eg https://groups.google.com/g/pandoc-discuss/c/75WYwG0TrKI/m/yZ6NNCIfAwAJ)

I ended up using this --from:

pandoc README.md --standalone --embed-resources \
  --from=markdown+pipe_tables-smart+citations --to=html \
  --toc --number-sections --wrap=preserve \
  --citeproc --csl=acm-sig-proceedings-long-author-list.csl -o README.html

I did some comparison of these tree:

pandoc --list-extensions=gfm
pandoc --list-extensions=markdown_github
pandoc --list-extensions=markdown

I use pandoc 3.1.7

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions