jgm/djot.js

Issues with ellipses and dashes when converting to pandoc format

Closed this issue · 1 comments

Hi,

When converting the djot file with the following content (using djot -t pandoc test.dj)

57--33 oxen---and no sheep...

to pandoc format, I get the output below. The output does not preserve the en-dash, em-dash, and ellipsis in the djot file. Also, the ellipsis is turned into a vertically centered ellipsis. Is this a limitation of the pandoc format or am I doing something wrong?

{
  "pandoc-api-version": [
    1,
    23
  ],
  "meta": {},
  "blocks": [
    {
      "t": "Para",
      "c": [
        {
          "t": "Str",
          "c": "57"
        },
        {
          "t": "Str",
          "c": "-"
        },
        {
          "t": "Str",
          "c": "33"
        },
        {
          "t": "Space"
        },
        {
          "t": "Str",
          "c": "oxen"
        },
        {
          "t": "Str",
          "c": "-"
        },
        {
          "t": "Str",
          "c": "and"
        },
        {
          "t": "Space"
        },
        {
          "t": "Str",
          "c": "no"
        },
        {
          "t": "Space"
        },
        {
          "t": "Str",
          "c": "sheep"
        },
        {
          "t": "Str",
          "c": "⋯"
        }
      ]
    }
  ]
}

I am using version 0.2.3 of djot.

Thanks for the quick fix 😄