Skip to content

Commit

Permalink
Chore: Typo fixed in multiple files (#3045)
Browse files Browse the repository at this point in the history
Co-authored-by: Tony Brix <tony@brix.ninja>
  • Loading branch information
SusheelThapa and UziTech authored Oct 17, 2023
1 parent c332d27 commit 7403ec0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Lexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class _Lexer {
src = src.substring(token.raw.length);
if (token.raw.length === 1 && tokens.length > 0) {
// if there's a single \n as a spacer, it's terminating the last line,
// so move it there so that we don't get unecessary paragraph tags
// so move it there so that we don't get unnecessary paragraph tags
tokens[tokens.length - 1].raw += '\n';
} else {
tokens.push(token);
Expand Down
6 changes: 3 additions & 3 deletions test/specs/original/markdown_documentation_basics.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <h2>Lists</h2>

<p>Unordered (bulleted) lists use asterisks, pluses, and hyphens (<code>*</code>,
<code>+</code>, and <code>-</code>) as list markers. These three markers are
interchangable; this:</p>
interchangeable; this:</p>

<pre><code>* Candy.
* Gum.
Expand Down Expand Up @@ -275,7 +275,7 @@ <h3>Code</h3>
<pre><code>I strongly recommend against using any `&lt;blink&gt;` tags.

I wish SmartyPants used named entities like `&amp;mdash;`
instead of decimal-encoded entites like `&amp;#8212;`.
instead of decimal-encoded entities like `&amp;#8212;`.
</code></pre>

<p>Output:</p>
Expand All @@ -285,7 +285,7 @@ <h3>Code</h3>

&lt;p&gt;I wish SmartyPants used named entities like
&lt;code&gt;&amp;amp;mdash;&lt;/code&gt; instead of decimal-encoded
entites like &lt;code&gt;&amp;amp;#8212;&lt;/code&gt;.&lt;/p&gt;
entities like &lt;code&gt;&amp;amp;#8212;&lt;/code&gt;.&lt;/p&gt;
</code></pre>

<p>To specify an entire block of pre-formatted code, indent every line of
Expand Down
6 changes: 3 additions & 3 deletions test/specs/original/markdown_documentation_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Output:

Unordered (bulleted) lists use asterisks, pluses, and hyphens (`*`,
`+`, and `-`) as list markers. These three markers are
interchangable; this:
interchangeable; this:

* Candy.
* Gum.
Expand Down Expand Up @@ -274,7 +274,7 @@ it easy to use Markdown to write about HTML example code:
I strongly recommend against using any `<blink>` tags.

I wish SmartyPants used named entities like `&mdash;`
instead of decimal-encoded entites like `&#8212;`.
instead of decimal-encoded entities like `&#8212;`.

Output:

Expand All @@ -283,7 +283,7 @@ Output:

<p>I wish SmartyPants used named entities like
<code>&amp;mdash;</code> instead of decimal-encoded
entites like <code>&amp;#8212;</code>.</p>
entities like <code>&amp;#8212;</code>.</p>


To specify an entire block of pre-formatted code, indent every line of
Expand Down
2 changes: 1 addition & 1 deletion test/specs/original/markdown_documentation_syntax.html
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ <h3 id="list">Lists</h3>

<p>Markdown supports ordered (numbered) and unordered (bulleted) lists.</p>

<p>Unordered lists use asterisks, pluses, and hyphens -- interchangably
<p>Unordered lists use asterisks, pluses, and hyphens -- interchangeably
-- as list markers:</p>

<pre><code>* Red
Expand Down
2 changes: 1 addition & 1 deletion test/specs/original/markdown_documentation_syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ Quote Level from the Text menu.

Markdown supports ordered (numbered) and unordered (bulleted) lists.

Unordered lists use asterisks, pluses, and hyphens -- interchangably
Unordered lists use asterisks, pluses, and hyphens -- interchangeably
-- as list markers:

* Red
Expand Down
2 changes: 1 addition & 1 deletion test/unit/marked-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ br
]);
});

it('should asign marked to `this`', () => {
it('should assign marked to `this`', () => {
marked.use({
walkTokens(token) {
if (token.type === 'em') {
Expand Down

1 comment on commit 7403ec0

@vercel
Copy link

@vercel vercel bot commented on 7403ec0 Oct 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.