forked from thlorenz/doctoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add two failing header-in-codeblock tests
Both of these tests should be fixed before we can consider thlorenz#37, thlorenz#38, and thlorenz#88 as resolved. Credit goes to @yomed for `test/fixtures/readme-with-code.md`.
- Loading branch information
Showing
3 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Hello, world! | ||
|
||
> You can make code blocks with three back ticks: | ||
> | ||
> ``` | ||
# Add this header | ||
<h1>And also this one</h1> | ||
> ``` | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
README to test doctoc with edge-case headers. | ||
|
||
<!-- START doctoc generated TOC please keep comment here to allow auto update --> | ||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> | ||
## Table of Contents | ||
|
||
- [Single Backticks](#single-backticks) | ||
- [Multiple Backticks](#multiple-backticks) | ||
- [code tag](#code-tag) | ||
- [pre tag](#pre-tag) | ||
|
||
<!-- END doctoc generated TOC please keep comment here to allow auto update --> | ||
|
||
|
||
## Single Backticks | ||
`<h2>not me single backticks</h2>` | ||
`## nor me single backticks` | ||
|
||
## Multiple Backticks | ||
``` | ||
<h2>not me fenced</h2> | ||
## nor me fenced | ||
not even me fenced | ||
------------------ | ||
``` | ||
|
||
## code tag | ||
<code><h2>not me code</h2></code> | ||
<code>## nor me code</code> | ||
|
||
## pre tag | ||
<pre> | ||
<h2>not me pre</h2> | ||
## nor me pre | ||
not even me pre | ||
------- | ||
</pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters