Skip to content

Markdown parser breaks some Japanese sentences #5368

@smorimoto

Description

@smorimoto

Prettier 1.15.1
Playground link

module.exports = {
  printWidth: 120,
  semi: false,
  singleQuote: true
}

Input:

何でも薄暗いじめじめした所でニャーニャー泣いていた事だけは記憶している。

Output:

何でも薄暗いじめじめした所でニャ ー ニャ ー 泣いていた事だけは記憶している。

Expected behavior:

This is a short, dash‐like character signifying that the preceding syllable should be lengthened in Japanese. But, in this example, there are unnecessary spaces before and after that character. And these spaces should not be inserted. Because it breaks some Japanese sentences.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:markdownIssues affecting Markdownlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.priority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions