Skip to content

New Rule: no-space-in-emphasis #378

Open
@Pixel998

Description

@Pixel998

Rule details

This rule is triggered when emphasis markers (bold, italic) are used, but they have spaces between the markers and the text.

What type of rule is this?

Warns about a potential problem

Example code

Here is some ** bold ** text.

Here is some * italic * text.

Here is some more __ bold __ text.

Here is some more _ italic _ text.

Participation

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

Additional comments

Rationale: Emphasis is only parsed as such when the asterisks/underscores aren't surrounded by spaces. This rule attempts to detect where they were surrounded by spaces, but it appears that emphasized text was intended by the author.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Ready to Implement

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions