Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Syntax highlight doesn't mark bold properly after/before alnum characters #138

Closed
jaeyeom opened this issue Feb 11, 2016 · 2 comments
Closed

Comments

@jaeyeom
Copy link

jaeyeom commented Feb 11, 2016

Markdown syntax highlight doesn't mark bold properly if the bold area starts after alpha-numeric characters and/or ends before alpha-numeric characters.

Repro Steps

  1. Open a markdown file.
  2. Try put **bb**cc or aa**bb**

Expected: Only bb should be bolded.
Actual: The bold area doesn't end or doesn't start.

This is very painful for CJK languages whose words are not always spaced.

Command History

     -0:09.9 bracket-matcher:select-inside-brackets (atom-text-editor.editor.is-focused)
     -0:08.8 markdown-preview:toggle (atom-text-editor.editor.is-focused)
     -0:02.7 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:00.0 core:confirm (atom-text-editor.editor.mini)
     -0:00.0 bug-report:open (atom-text-editor.editor.is-focused)

Versions

  • Atom: 1.5.1
  • Atom-Shell:
  • OS: Microsoft Windows 10 Home
  • Misc
    • apm 1.6.0
    • npm 2.13.3
    • node 0.10.40
    • python 3.5.1
    • git 2.7.1.windows.1
    • visual studio

This report was created in and posted from the Atom editor using the package bug-report v0.7.1.

@lee-dohm
Copy link
Contributor

This is a duplicate of #117 with an additional test case. The root cause though is asterisks in the middle of "words". You may want to subscribe there for updates.

Thanks for reporting!

@jaeyeom
Copy link
Author

jaeyeom commented Feb 11, 2016

Thanks. I missed the duplicate issue. This is important issue for CJK users, because there are no spaces in Chinese and Japanese, and spaces are mostly but not always the word break in Korean.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants