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

No scope defined for bold/italic definition characters #235

Open
1 task done
sdalmonte opened this issue Oct 31, 2018 · 0 comments
Open
1 task done

No scope defined for bold/italic definition characters #235

sdalmonte opened this issue Oct 31, 2018 · 0 comments

Comments

@sdalmonte
Copy link

Prerequisites

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

  1. Create a GFM document.
  2. 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.

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