Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
".husky/_/",
".vscode/settings.json",
".yarn/",
"__fixtures__/markdown/*.md",
"patches/",
"yarn.lock"
],
Expand Down
2 changes: 2 additions & 0 deletions .dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ exiter
fbca
gpgsign
hmarr
htab
jchen
ksort
nvmrc
shfmt
unstub
Expand Down
1 change: 1 addition & 0 deletions .dprint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".git/",
".husky/_/",
".yarn/",
"__fixtures__/markdown/*.md",
"node_modules/",
"yarn.lock"
],
Expand Down
1 change: 1 addition & 0 deletions .remarkignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
**/RELEASE_NOTES.md
**/*scratch.md
**/.remarkignore
__fixtures__/markdown/*.md
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,16 @@
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"files.watcherExclude": {
"**/dist/**": true,
"**/node_modules/**": true,
"*/.git/objects/**": true,
"*/.git/subtree-cache/**": true,
"*/.hg/store/**": true,
".git/objects/**": true,
".git/subtree-cache/**": true,
".hg/store/**": true
},
"git.autofetch": true,
"git.enableSmartCommit": true,
"githubPullRequests.pullBranch": "never",
Expand All @@ -163,6 +173,10 @@
"js/ts.suggest.jsdoc.generateReturns": true,
"js/ts.suggest.paths": true,
"js/ts.tsdk.path": "node_modules/typescript/lib",
"js/ts.tsdk.promptToUseWorkspaceVersion": true,
"js/ts.tsserver.experimental.enableProjectDiagnostics": true,
"js/ts.tsserver.log": "verbose",
"js/ts.tsserver.maxMemory": 8192,
"js/ts.updateImportsOnFileMove.enabled": "always",
"markdown.extension.toc.slugifyMode": "github",
"markdown.extension.toc.updateOnSave": false,
Expand Down
21 changes: 21 additions & 0 deletions __fixtures__/markdown/attention.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
*a*
**b**
***c***
****d****

**e*
*f**

*g
h*

**i
j**

***k*

****l*

***m**

****m**
5 changes: 5 additions & 0 deletions __fixtures__/markdown/autolink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
An autolink <http://example.com>.

Another autolink <alpha@bravo.charlie>.

Not an autolink <alpha.bravo.charlie>.
17 changes: 17 additions & 0 deletions __fixtures__/markdown/blockquote.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
> a block quote

> Another block quote
with two lazy
lines.

> Block quote
> # with a heading

> Block quote
> ```
> with unclosed fenced code.

>Block
> quote
>with and without
space.
5 changes: 5 additions & 0 deletions __fixtures__/markdown/character-escape.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Character escapes, such as: \*not emphasis*.

\- not a list.

Escaping non-punctuation doesn’t work: \1
3 changes: 3 additions & 0 deletions __fixtures__/markdown/character-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Character references, such as named: &amp;,
decimal: &#35;, &#1234;, &#992;, &#0;,
and hexadecimal: &#X22;, &#XD06;, &#xcab;.
48 changes: 48 additions & 0 deletions __fixtures__/markdown/character-references-everywhere.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
> However, &MadeUpEntities; are kept in the document.

> Entities even work in the language flag of fenced code blocks:

> ```some&copy;language
> alert('Hello');
> ```

> And in an auto-link: <http://example&copy;xample.com>

> Foo and bar and http://example&copy;xample.com and baz.

> Or in [l&copy;nks](
> ~/some&copy;file "in some pl&copy;ce")

> Or in [l&copy;lnks](
> <~/some&copy;file>
> "in some pl&copy;ce")

> Or in ![
> l&copy;nks
> ](
> ~/some&copy;file "in some pl&copy;ce")

***

> Or in ![l&copy;lnks](
> <~/some&copy;file>
> "in some pl&copy;ce")

> Or in ![
> l&copy;nks
> ][12]

> [1]: http://example&copy;xample.com "in some
> pl&copy;ce"

> [
> 1
> ]: http://example&copy;xample.com "in some
> pl&copy;ce"

***

> But, entities are not interpreted in `inline c&ouml;de`, or in
> code blocks:

> C&Ouml;DE block.
31 changes: 31 additions & 0 deletions __fixtures__/markdown/code-fenced.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
```
fenced code
```

```js
fenced code with a language
```

```js line=1
fenced code with meta
```

~~~
fenced code with tildes
~~~

```not fenced code```

~~~fenced code~~~
asd
~~~

```

asd
```

```
asd

```
18 changes: 18 additions & 0 deletions __fixtures__/markdown/code-indented.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
indented code


more indented code
Not indented code

more
indent

Not code.

tabs
and mixed with spaces
extra spaces

Not code.

a tab
8 changes: 8 additions & 0 deletions __fixtures__/markdown/code-text.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
A couple of code examples: `a`, ` b`, `c `, ` d `, ` e
`, ` f
`, `g
`, `
h`.

And: `alpha bravo charlie
delta echo`.
9 changes: 9 additions & 0 deletions __fixtures__/markdown/definition.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[a]: <>
[a]: b
[a]: b "c"
[a]: b 'c'
[a]: b (c)
[a]: <b>
[a]: <b> '
c d
e'
Empty file added __fixtures__/markdown/empty.md
Empty file.
8 changes: 8 additions & 0 deletions __fixtures__/markdown/hard-break-escape.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
a\
b

c\
d

e \
f
11 changes: 11 additions & 0 deletions __fixtures__/markdown/hard-break-prefix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
a
b

c
d

e
f

g
h
15 changes: 15 additions & 0 deletions __fixtures__/markdown/heading-atx.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
####### Paragraph 7

# Heading w/ a closing sequence ##

An empty heading:

#

## Heading w/ ## hashes ## inside#
15 changes: 15 additions & 0 deletions __fixtures__/markdown/heading-setext.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
a
=

b
-

c
=========

d
---

e
f
=
16 changes: 16 additions & 0 deletions __fixtures__/markdown/html-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<script>
a
</script>

<!--b-->

<?c?>

<!d>

<![CDATA[e]]>

<div
f

<g>
11 changes: 11 additions & 0 deletions __fixtures__/markdown/html-text.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
a <b>c</b> d

e <!--f-->

g <?h?>

i <!j>

k <![CDATA[l]]>

m <div> n
7 changes: 7 additions & 0 deletions __fixtures__/markdown/image-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Not references, as they’re not defined ![a], ![b][], ![c][d].

References! ![e], ![f][], ![g][h]

[e]: x
[f]: y
[h]: z
24 changes: 24 additions & 0 deletions __fixtures__/markdown/image-resource-eol.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
a ![
b](c) d

a ![b
](c) d

a ![b
c](d) e

a ![b](
c) d

a ![b](c
) d

a ![b](c
"d") e

a ![b](c "d
e") f

a ![b](c "d
e
f") g
8 changes: 8 additions & 0 deletions __fixtures__/markdown/image-resource.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Resources: ![a](b), ![c](d "e"), ![f](g 'h'), ![i](j (k)), ![l](<m>).

“Content” in images: ![a *b* `c`](d).

Empty: ![]().

Character references and escapes:
![a\*b&#9;c&amp;d](e\*f&#9;g&amp;h "i\*j&#9;k&amp;l")
15 changes: 15 additions & 0 deletions __fixtures__/markdown/link-reference-with-phrasing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[`f`][]
[&semi;][]
[\;][]
[;][]
[`f`&semi;][]
[`f`\;][]
[`f`;][]

[`f`]: alpha
[&semi;]: bravo
[\;]: charlie
[;]: delta
[`f`&semi;]: echo
[`f`\;]: foxtrot
[`f`;]: golf
7 changes: 7 additions & 0 deletions __fixtures__/markdown/link-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Not references, as they’re not defined [a], [b][], [c][d].

References! [e], [f][], [g][h]

[e]: x
[f]: y
[h]: z
Loading
Loading