Skip to content

Support "CJK-friendly (emphasis) extension" #569

@tats-u

Description

@tats-u

https://github.com/tats-u/markdown-cjk-friendly

This extension fixes unrecognized emphasis annotations in CJK languages:

**このアスタリスクは強調記号として認識されず、そのまま表示されます。**この文のせいで。

**该星号不会被识别,而是直接显示。**这是因为它没有被识别为强调符号。

**이 별표는 강조 표시로 인식되지 않고 그대로 표시됩니다(이 괄호 때문에)**이 문장 때문에.

These patterns sometimes occur especially in Chinese and Japanese. Discussed in commonmark/commonmark-spec#650.

remark plugin: Version NPM Downloads (markdown-it plugin is also available)
dependent repos: https://github.com/tats-u/markdown-cjk-friendly/network/dependents?package_id=UGFja2FnZS01NzQ1NTQzNTQw

Trying to be ported to swift-cmark: https://github.com/swiftlang/swift-cmark/pull/78/files

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions