From 7403ec0779988985247a2d7eb9b172dd4284f30b Mon Sep 17 00:00:00 2001 From: Susheel Thapa <077bct090.susheel@pcampus.edu.np> Date: Tue, 17 Oct 2023 11:13:19 +0545 Subject: [PATCH] Chore: Typo fixed in multiple files (#3045) Co-authored-by: Tony Brix --- src/Lexer.ts | 2 +- test/specs/original/markdown_documentation_basics.html | 6 +++--- test/specs/original/markdown_documentation_basics.md | 6 +++--- test/specs/original/markdown_documentation_syntax.html | 2 +- test/specs/original/markdown_documentation_syntax.md | 2 +- test/unit/marked-spec.js | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Lexer.ts b/src/Lexer.ts index b851d4cf91..a645552024 100644 --- a/src/Lexer.ts +++ b/src/Lexer.ts @@ -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); diff --git a/test/specs/original/markdown_documentation_basics.html b/test/specs/original/markdown_documentation_basics.html index da323d3469..13e963934b 100644 --- a/test/specs/original/markdown_documentation_basics.html +++ b/test/specs/original/markdown_documentation_basics.html @@ -114,7 +114,7 @@

Lists

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

+interchangeable; this:

*   Candy.
 *   Gum.
@@ -275,7 +275,7 @@ 

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:

@@ -285,7 +285,7 @@

Code

<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 diff --git a/test/specs/original/markdown_documentation_basics.md b/test/specs/original/markdown_documentation_basics.md index ecc7e62780..bac6950280 100644 --- a/test/specs/original/markdown_documentation_basics.md +++ b/test/specs/original/markdown_documentation_basics.md @@ -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. @@ -274,7 +274,7 @@ it easy to use Markdown to write about HTML example code: I strongly recommend against using any `` tags. I wish SmartyPants used named entities like `—` - instead of decimal-encoded entites like `—`. + instead of decimal-encoded entities like `—`. Output: @@ -283,7 +283,7 @@ Output:

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

+ entities like &#8212;.

To specify an entire block of pre-formatted code, indent every line of diff --git a/test/specs/original/markdown_documentation_syntax.html b/test/specs/original/markdown_documentation_syntax.html index 5c01306cce..bd5b105e5b 100644 --- a/test/specs/original/markdown_documentation_syntax.html +++ b/test/specs/original/markdown_documentation_syntax.html @@ -298,7 +298,7 @@

Lists

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
diff --git a/test/specs/original/markdown_documentation_syntax.md b/test/specs/original/markdown_documentation_syntax.md
index c659b3f7b0..b777294114 100644
--- a/test/specs/original/markdown_documentation_syntax.md
+++ b/test/specs/original/markdown_documentation_syntax.md
@@ -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
diff --git a/test/unit/marked-spec.js b/test/unit/marked-spec.js
index 5be1b2b857..f6fe3686d9 100644
--- a/test/unit/marked-spec.js
+++ b/test/unit/marked-spec.js
@@ -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') {