Skip to content

New Rule: no-ineffective-emphasis #395

@tats-u

Description

@tats-u

Rule details

This rule warns * and ** incompatible with CommonMark especially in some languages (especially Japanese and Chinese and sometimes Korean)

What type of rule is this?

Warns about a potential problem

Example code

**この文は太字になりません。(日本語)**左边的句子没有加粗。(中文)

<!-- **This sentence will not be bold. (Japanese)** The left sentence will not be bold. (Chinese) -->
<!-- Asterisks in the English-translated sentences will be converted to <strong> but those in the original Japanese and Chinese sentences will NOT be -->

Prior Art

Participation

  • I am willing to submit a pull request to implement this rule.

Additional comments

This spec bug in CommonMark has suffered Japanese and Chinese Markdown users for a long time.

Image

Image

Image

Image

↓ The 2 surrounding spaces around the bold link are essentially unnecessary, but added to avoid this problem.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions