Skip to content

Specify the first- and second-level quotes for the smartquotes extension #424

@jppellet

Description

@jppellet

Description / Summary

The smartquotes extension will output curly quotes “” and ‘’ instead of "" and '', which is great. But not all languages use these quotes. It would be great to have a way to specify them.

Value / benefit

Better support for non-English languages

Implementation details

Custom quotes can directly be passed to the md instance as markdown-it supports this. The "quotes" option of md is an array of four strings that specify opening and closing first- and second-level string. For instance, it could be set to ['«\u202F', '\u202F»', '“', '”'] for French.

Tasks to complete

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions