summaryrefslogtreecommitdiff
path: root/spec/scripts/lib/glfm/update_specification_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/scripts/lib/glfm/update_specification_spec.rb')
-rw-r--r--spec/scripts/lib/glfm/update_specification_spec.rb46
1 files changed, 33 insertions, 13 deletions
diff --git a/spec/scripts/lib/glfm/update_specification_spec.rb b/spec/scripts/lib/glfm/update_specification_spec.rb
index 8a7d7100363..bd3d222639f 100644
--- a/spec/scripts/lib/glfm/update_specification_spec.rb
+++ b/spec/scripts/lib/glfm/update_specification_spec.rb
@@ -55,12 +55,20 @@ RSpec.describe Glfm::UpdateSpecification, '#process' do
<<~MARKDOWN
# Section with Examples
- ## Strong
+ ## Emphasis and Strong
```````````````````````````````` example
- __bold__
+ _EMPHASIS LINE 1_
+ _EMPHASIS LINE 2_
.
- <p><strong>bold</strong></p>
+ <p><em>EMPHASIS LINE 1</em>
+ <em>EMPHASIS LINE 2</em></p>
+ ````````````````````````````````
+
+ ```````````````````````````````` example
+ __STRONG!__
+ .
+ <p><strong>STRONG!</strong></p>
````````````````````````````````
End of last GitHub examples section.
@@ -317,21 +325,33 @@ RSpec.describe Glfm::UpdateSpecification, '#process' do
</div>
<h1 data-sourcepos="5:1-5:23" dir="auto">
<a id="user-content-section-with-examples" class="anchor" href="#section-with-examples" aria-hidden="true"></a>Section with Examples</h1>
- <h2 data-sourcepos="7:1-7:9" dir="auto">
- <a id="user-content-strong" class="anchor" href="#strong" aria-hidden="true"></a>Strong</h2>
+ <h2 data-sourcepos="7:1-7:22" dir="auto">
+ <a id="user-content-emphasis-and-strong" class="anchor" href="#emphasis-and-strong" aria-hidden="true"></a>Emphasis and Strong</h2>
+ <div class="gl-relative markdown-code-block js-markdown-code">
+ <pre data-sourcepos="9:1-12:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_EMPHASIS LINE 1_</span>
+ <span id="LC2" class="line" lang="plaintext">_EMPHASIS LINE 2_</span></code></pre>
+ <copy-code></copy-code>
+ </div>
+ <div class="gl-relative markdown-code-block js-markdown-code">
+ <pre data-sourcepos="14:1-17:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;p&gt;&lt;em&gt;EMPHASIS LINE 1&lt;/em&gt;</span>
+ <span id="LC2" class="line" lang="plaintext">&lt;em&gt;EMPHASIS LINE 2&lt;/em&gt;&lt;/p&gt;</span></code></pre>
+ <copy-code></copy-code>
+ </div>
+ <div class="gl-relative markdown-code-block js-markdown-code">
+ <pre data-sourcepos="19:1-21:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__STRONG!__</span></code></pre>
+ <copy-code></copy-code>
+ </div>
<div class="gl-relative markdown-code-block js-markdown-code">
- <pre data-sourcepos="9:1-13:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__bold__</span>
- <span id="LC2" class="line" lang="plaintext">.</span>
- <span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;strong&gt;bold&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
+ <pre data-sourcepos="23:1-25:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;p&gt;&lt;strong&gt;STRONG!&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
- <p data-sourcepos="15:1-15:36" dir="auto">End of last GitHub examples section.</p>
- <h1 data-sourcepos="17:1-17:46" dir="auto">
+ <p data-sourcepos="27:1-27:36" dir="auto">End of last GitHub examples section.</p>
+ <h1 data-sourcepos="29:1-29:46" dir="auto">
<a id="user-content-official-specification-section-with-examples" class="anchor" href="#official-specification-section-with-examples" aria-hidden="true"></a>Official Specification Section with Examples</h1>
- <p data-sourcepos="19:1-19:14" dir="auto">Some examples.</p>
- <h1 data-sourcepos="22:1-22:42" dir="auto">
+ <p data-sourcepos="31:1-31:14" dir="auto">Some examples.</p>
+ <h1 data-sourcepos="34:1-34:42" dir="auto">
<a id="user-content-internal-extension-section-with-examples" class="anchor" href="#internal-extension-section-with-examples" aria-hidden="true"></a>Internal Extension Section with Examples</h1>
- <p data-sourcepos="24:1-24:14" dir="auto">Some examples.</p>
+ <p data-sourcepos="36:1-36:14" dir="auto">Some examples.</p>
RENDERED_HTML
expect(snapshot_spec_html_contents).to be == expected_snapshot_spec_html
end