-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): support GFM (github flavored markdown)
[remark][1] by default only supports [CommonMark][2], however, with [remark-gfm][3] and [remark-frontmatter][4] we can support [GFM (GitHub flavoured markdown][5], which is used by GitHub. [1]: https://github.com/remarkjs/remark [2]: https://commonmark.org/ [3]: https://github.com/remarkjs/remark-gfm [4]: https://github.com/remarkjs/remark-frontmatter [5]: https://github.github.com/gfm/
- Loading branch information
1 parent
093eafc
commit 1ee1ab1
Showing
6 changed files
with
314 additions
and
4 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
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
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
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
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,49 @@ | ||
--- | ||
description: | | ||
Here is a YAML frontmatter, supported by GitHub (by not GFM!!), Docusaurus, | ||
Vitepress, etc. | ||
--- | ||
|
||
# This is an unusual markdown file with non-standard syntax | ||
|
||
See <https://github.github.com/gfm> for some of GitHub's | ||
GitHub Flavored Markdown extensions. | ||
|
||
Here is a markdown comment: <!-- Hello World --> | ||
|
||
This is my text with a footnote.[^1] | ||
|
||
[^1]: This is my footnote. | ||
|
||
This is a ~~strikethrough~~. | ||
|
||
Here is some math (not part of GFM): $ x=5 + 1 $ | ||
|
||
Here is some more math: | ||
|
||
```math | ||
\sum_{n=1}^{\infty} x = \infty | ||
``` | ||
|
||
## Here is a table | ||
|
||
| foo | bar | | ||
| --- | --- | | ||
| baz | bim | | ||
|
||
## Here is my Mermaid diagram in a quote in a list | ||
|
||
* This is my list | ||
* This is my list | ||
1. This is another list entry. | ||
2. And another one. | ||
3. This is my entry with the diagram: | ||
> Here is my quote with the diagram: | ||
> | ||
> ```mermaid | ||
> --- | ||
> title: This is my diagram title | ||
> --- | ||
> flowchart | ||
> A[Hello World] | ||
> ``` |
Oops, something went wrong.