Skip to content

ConTeXt: cannot pass options to \inputmarkdown #388

@ibotty

Description

@ibotty

I am using markdown from the texlive-markdown-svn66257-69.fc39.noarch package. I don't know how to get the markdown version.

The document

\usemodule[t][markdown]
\starttext
\inputmarkdown[smart_ellipses]{input1.md}
\stoptext

fails with

> context test.mkiv
[...]
tex error       > tex error on line 3 in file /var/home/tob/src/zebra/pdf-generator/examples/output.mkiv: ! Use of \setupmarkdown doesn't match its definition


\doinputmarkdown [#1]#2->\begingroup \iffirstargument \setupmarkdown {
                                                                      #1}\fi \markdownInput {#2}\endgroup
l.3 \inputmarkdown[smart_ellipses]{input1.md}
[...]

It Removing the argument ([smart_ellipses]) it compiles and renders markdown.

Using \setupmarkdown let's me pass options. I'd like to use different options when including markdown though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions