diff --git a/test/index.js b/test/index.js index bb74983908..d3e9c6593f 100644 --- a/test/index.js +++ b/test/index.js @@ -356,20 +356,6 @@ function fix(options) { .replace(/&__QUOT__;/g, '"') .replace(/&__APOS__;/g, '\''); - // add heading id's - html = html.replace(/<(h[1-6])>([^<]+)<\/\1>/g, function(s, h, text) { - var id = text - .replace(/'/g, '\'') - .replace(/"/g, '"') - .replace(/>/g, '>') - .replace(/</g, '<') - .replace(/&/g, '&'); - - id = id.toLowerCase().replace(/[^\w]+/g, '-'); - - return '<' + h + ' id="' + id + '">' + text + ''; - }); - fs.writeFileSync(file, html); }); diff --git a/test/new/gfm_code_hr_list.html b/test/new/gfm_code_hr_list.html index 9fbd0fb9dd..783d84cd73 100644 --- a/test/new/gfm_code_hr_list.html +++ b/test/new/gfm_code_hr_list.html @@ -1,4 +1,4 @@ -

foo

+

foo

  1. bar:

    diff --git a/test/new/main.html b/test/new/main.html index 8f78c4d30e..a1e20f6a29 100644 --- a/test/new/main.html +++ b/test/new/main.html @@ -1,4 +1,4 @@ -

    A heading

    Just a note, I've found that I can't test my markdown parser vs others. For example, both markdown.js and showdown code blocks in lists wrong. They're also completely inconsistent with regards to paragraphs in list items.

    A link. Not anymore.

  2. New List Item 3 The last item
  3. List Item 3 The final item.

  4. List Item 4 The real final item.

  5. Paragraph.


    Another blockquote! I really need to get more creative with mockup text.. markdown.js breaks here again

    Another Heading

    Hello world. Here is a link. And an image alt.

    Code goes here.
     Lots of it...
    diff --git a/test/new/toplevel_paragraphs.gfm.html b/test/new/toplevel_paragraphs.gfm.html index 970c6f19f6..fe21d0cca6 100644 --- a/test/new/toplevel_paragraphs.gfm.html +++ b/test/new/toplevel_paragraphs.gfm.html @@ -9,10 +9,10 @@

    hello world

    -

    how are you

    +

    how are you

    hello world

    -

    how are you

    +

    how are you

    hello world

    how are you

    diff --git a/test/tests/gfm_code_hr_list.html b/test/tests/gfm_code_hr_list.html index 9fbd0fb9dd..783d84cd73 100644 --- a/test/tests/gfm_code_hr_list.html +++ b/test/tests/gfm_code_hr_list.html @@ -1,4 +1,4 @@ -

    foo

    +

    foo

    1. bar:

      diff --git a/test/tests/main.html b/test/tests/main.html index 8f78c4d30e..a1e20f6a29 100644 --- a/test/tests/main.html +++ b/test/tests/main.html @@ -1,4 +1,4 @@ -

      A heading

      Just a note, I've found that I can't test my markdown parser vs others. For example, both markdown.js and showdown code blocks in lists wrong. They're also completely inconsistent with regards to paragraphs in list items.

      A link. Not anymore.

    2. New List Item 3 The last item
    3. List Item 3 The final item.

    4. List Item 4 The real final item.

    5. Paragraph.

      • bq Item 1
      • bq Item 2
        • New bq Item 1
        • New bq Item 2 Text here

      Another blockquote! I really need to get more creative with mockup text.. markdown.js breaks here again

      Another Heading

      Hello world. Here is a link. And an image alt.

      Code goes here.
       Lots of it...
      diff --git a/test/tests/markdown_documentation_basics.html b/test/tests/markdown_documentation_basics.html index aadbce2bb8..7eee11250f 100644 --- a/test/tests/markdown_documentation_basics.html +++ b/test/tests/markdown_documentation_basics.html @@ -1,4 +1,4 @@ -

      Markdown: Basics

      +

      Markdown: Basics

      -

      Getting the Gist of Markdown's Formatting Syntax

      +

      Getting the Gist of Markdown's Formatting Syntax

      This page offers a brief overview of what it's like to use Markdown. The syntax page provides complete, detailed documentation for @@ -24,7 +24,7 @@

      Getting the Gist of Ma

      Note: This document is itself written using Markdown; you can see the source for it by adding '.text' to the URL.

      -

      Paragraphs, Headers, Blockquotes

      +

      Paragraphs, Headers, Blockquotes

      A paragraph is simply one or more consecutive lines of text, separated by one or more blank lines. (A blank line is any line that looks like a @@ -88,7 +88,7 @@

      Paragraphs, Headers, Blockquotes

      </blockquote> -

      Phrase Emphasis

      +

      Phrase Emphasis

      Markdown uses asterisks and underscores to indicate spans of emphasis.

      @@ -110,7 +110,7 @@

      Phrase Emphasis

      Or, if you prefer, <strong>use two underscores instead</strong>.</p> -

      Lists

      +

      Lists

      Unordered (bulleted) lists use asterisks, pluses, and hyphens (*, +, and -) as list markers. These three markers are @@ -181,7 +181,7 @@

      Lists

      </ul> - +

      Links

      Markdown supports two styles for creating links: inline and reference. With both styles, you use square brackets to delimit the @@ -244,7 +244,7 @@

      <a href="http://www.nytimes.com/">The New York Times</a>.</p> -

      Images

      +

      Images

      Image syntax is very much like link syntax.

      @@ -265,7 +265,7 @@

      Images

      <img src="/path/to/img.jpg" alt="alt text" title="Title" />
       
      -

      Code

      +

      Code

      In a regular paragraph, you can create code span by wrapping text in backtick quotes. Any ampersands (&) and angle brackets (< or diff --git a/test/tests/markdown_documentation_syntax.html b/test/tests/markdown_documentation_syntax.html index 40e083711a..677ab749bb 100644 --- a/test/tests/markdown_documentation_syntax.html +++ b/test/tests/markdown_documentation_syntax.html @@ -1,4 +1,4 @@ -

      Markdown: Syntax

      +

      Markdown: Syntax

      -

      Ordered

      +

      Ordered

      Tight:

      @@ -97,7 +97,7 @@

      Ordered

    6. Item 3.

    -

    Nested

    +

    Nested