Skip to content

asciidoctor writer outputs asciidoc quotation marks #5487

Closed

Description

@rwalkerands

(pandoc 2.7.2)

There's a difference in the syntax of quotation marks between asciidoc and asciidoctor. But when requesting asciidoctor output, asciidoc quotation marks are output.

Sample input:

"What kind of charm?" Lazarus asked. "An odoriferous one or a mineral
one?"

Output from pandoc -f markdown -t asciidoctor t.md:

``What kind of charm?'' Lazarus asked. ``An odoriferous one or a mineral
one?''

That syntax (using the double-backquotes and double-apostrophes) is correct asciidoc, but not correct asciidoctor syntax: it isn't recognized by the asciidoctor processor.

I guess if pandoc's "smart" extension is disabled (as it is by default), you have to output the specific Unicode characters for the quotation marks.

asciidoctor syntax does have smart quotes, which pandoc could use with the "smart" extension enabled. If you want to use asciidoctor's "smart quotes", the correct output should be:

"`What kind of charm?`" Lazarus asked. "`An odoriferous one or a mineral
one?`" 

See https://asciidoctor.org/docs/user-manual/#curved for the description of asciidoctor "smart" quotation marks (single and double) and apostrophes.

BTW there seems to be a long-standing issue to support alternate versions of the smart quote behaviour in asciidoctor: asciidoctor/asciidoctor#725

Activity

  1. rwalkerands commented on May 6, 2019

    @rwalkerands
    Author

    Wow, you are awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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