This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 106
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
No scope defined for bold/italic definition characters #235
Copy link
Copy link
Open
Labels
Description
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
There’s no scope defined for the underscores/asterisks used to mark text as italic or bold. This makes it impossible to style these characters independently of the text they contain.
Steps to Reproduce
- Create a GFM document.
- Mark text as
_italic_,*italic*,__bold__, or**bold**.
Expected behavior:
<span class="syntax--markup syntax--italic syntax--gfm">
<span class="syntax--punctuation syntax--definition syntax--begin syntax--gfm">_</span>
italic
<span class="syntax--punctuation syntax--definition syntax--end syntax--gfm">_</span>
</span>
<span class="syntax--markup syntax--italic syntax--gfm">
<span class="syntax--punctuation syntax--definition syntax--begin syntax--gfm">*</span>
italic
<span class="syntax--punctuation syntax--definition syntax--end syntax--gfm">*</span>
</span>
<span class="syntax--markup syntax--bold syntax--gfm">
<span class="syntax--punctuation syntax--definition syntax--begin syntax--gfm">__</span>
bold
<span class="syntax--punctuation syntax--definition syntax--end syntax--gfm">__</span>
</span>
<span class="syntax--markup syntax--bold syntax--gfm">
<span class="syntax--punctuation syntax--definition syntax--begin syntax--gfm">**</span>
bold
<span class="syntax--punctuation syntax--definition syntax--end syntax--gfm">**</span>
</span>Actual behavior:
<span class="syntax--markup syntax--italic syntax--gfm">_italic_</span>
<span class="syntax--markup syntax--italic syntax--gfm">*italic*</span>
<span class="syntax--markup syntax--bold syntax--gfm">__bold__</span>
<span class="syntax--markup syntax--bold syntax--gfm">**bold**</span>Reproduces how often:
100% of the time
Versions
macOS 10.12.6
Atom : 1.32.0
Electron: 2.0.9
Chrome : 61.0.3163.100
Node : 8.9.3
apm 2.1.2
npm 6.2.0
node 8.9.3 x64
atom 1.32.0
python 2.7.10
git 2.14.3
Additional Information
See also #101.