<commit_before>.
==Mark==
.
<p><mark>Mark</mark></p>
.

.
x ====foo== bar==
.
<p>x <mark><mark>foo</mark> bar</mark></p>
.

.
x ==foo ==bar====
.
<p>x <mark>foo <mark>bar</mark></mark></p>
.

.
x ====foo====
.
<p>x <mark><mark>foo</mark></mark></p>
.

.
x ===foo===
.
<p>x =<mark>foo</mark>=</p>
.

Marks have the same priority as emphases:

.
**==test**==

==**test==**
.
<p><strong>==test</strong>==</p>
<p><mark>**test</mark>**</p>
.


Marks have the same priority as emphases with respect to links
.
[==link]()==

==[link==]()
.
<p><a href="">==link</a>==</p>
<p>==<a href="">link==</a></p>
.


Marks have the same priority as emphases with respect to backticks
.
==`code==`

`==code`==
.
<p>==<code>code==</code></p>
<p><code>==code</code>==</p>
.


Nested marks
.
==foo ==bar== baz==
.
<p><mark>foo <mark>bar</mark> baz</mark></p>
.


Nested marks with emphasis
.
==f **o ==o b== a** r==
.
<p><mark>f <strong>o <mark>o b</mark> a</strong> r</mark></p>
.


Should not have a whitespace between text and "==":
.
foo == bar == baz
.
<p>foo == bar == baz</p>
.


Newline should be considered a whitespace:
.
==test
== a

==
test==

==
test
==
.
<p>==test
== a</p>
<p>==
test==</p>
<p>==
test
==</p>
.


.
x ==a ==foo===========bar== b==

x ==a ==foo============bar== b==
.
<p>x <mark>a <mark>foo</mark></mark>===<mark><mark>bar</mark> b</mark></p>
<p>x <mark>a <mark>foo</mark></mark>====<mark><mark>bar</mark> b</mark></p>
.


From CommonMark test suite, replacing `**` with our marker:

.
a=="foo"==
.
<p>a==&quot;foo&quot;==</p>
.
<commit_msg>specs for "mark" plugin now pass<commit_after>.
==Mark==
.
<p><mark>Mark</mark></p>
.

.
x ====foo== bar==
.
<p>x <mark><mark>foo</mark> bar</mark></p>
.

.
x ==foo ==bar====
.
<p>x <mark>foo <mark>bar</mark></mark></p>
.

.
x ====foo====
.
<p>x <mark><mark>foo</mark></mark></p>
.

.
x ===foo===
.
<p>x =<mark>foo</mark>=</p>
.

Marks have the same priority as emphases:

.
**==test**==

==**test==**
.
<p><strong>==test</strong>==</p>
<p><mark>**test</mark>**</p>
.


Marks have the same priority as emphases with respect to links
.
[==link]()==

==[link==]()
.
<p><a href="">==link</a>==</p>
<p>==<a href="">link==</a></p>
.


Marks have the same priority as emphases with respect to backticks
.
==`code==`

`==code`==
.
<p>==<code>code==</code></p>
<p><code>==code</code>==</p>
.


Nested marks
.
==foo ==bar== baz==
.
<p><mark>foo <mark>bar</mark> baz</mark></p>
.


Nested marks with emphasis
.
==f **o ==o b== a** r==
.
<p><mark>f <strong>o <mark>o b</mark> a</strong> r</mark></p>
.


Should not have a whitespace between text and "==":
.
foo == bar == baz
.
<p>foo == bar == baz</p>
.


Newline should be considered a whitespace:
.
==test
== a

==
test==

==
test
==
.
<p>==test
== a</p>
<p>==
test==</p>
<h1>==
test</h1>
.


.
x ==a ==foo===========bar== b==

x ==a ==foo============bar== b==
.
<p>x <mark>a <mark>foo</mark></mark>===<mark><mark>bar</mark> b</mark></p>
<p>x <mark>a <mark>foo</mark></mark>====<mark><mark>bar</mark> b</mark></p>
.


From CommonMark test suite, replacing `**` with our marker:

.
a=="foo"==
.
<p>a==&quot;foo&quot;==</p>
.

{'fraction_non_alphanumeric': 0.33076429030186255, 'fraction_numerical': 0.0006422607578676942, 'mean_word_length': 3.8748043818466353, 'pattern_counts': {'":': 2, '<': 191, '<?xml version=': 0, '>': 191, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4982467', 'n_tokens_mistral': 1447, 'n_tokens_neox': 1418, 'n_words': 298}