Skip to content

Minute surrounded by colons is treated as symbol #350

@phormio

Description

@phormio

In a time such as 10:13:02, Pandoc considers :13: to be a symbol. See terminal transcript:

bash$ podman run --rm pandoc/core --version
pandoc 3.8
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: /usr/local/share/pandoc
Copyright (C) 2006-2025 John MacFarlane. Web:  https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.
bash$ echo The door opened at 10:13:02. | podman run --rm -i pandoc/core --from=djot
<p>The door opened at 10<span class="symbol">13</span>02.</p>
bash$ 

Note that this causes the colons in the time to be lost.

I don't think this treatment of "10:13:02" is the best reading of the "Symbols" section in the Djot syntax reference. Am I wrong?

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