-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: use webpack raw-loader to load markdown snippet as string in …
…@/snippets/ directory
- Loading branch information
Showing
7 changed files
with
72 additions
and
52 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,38 +1,31 @@ | ||
const snippets = [ | ||
{ | ||
title: "welcome", | ||
display: "Welcome", | ||
markdown: `# Welcome to the ICJIA Markdown Editor | ||
# Welcome to the ICJIA Markdown Editor | ||
|
||
Paragraphs are separated by a blank line. | ||
2nd paragraph. *Italic*, **bold** | ||
|
||
2nd paragraph. _Italic_, **bold** | ||
|
||
## H2 Header | ||
|
||
### Itemized lists look like: | ||
* this one | ||
* that one | ||
* the other one | ||
* indented four spaces | ||
|
||
- this one | ||
- that one | ||
- the other one | ||
- indented four spaces | ||
|
||
### Numbered Lists look like | ||
|
||
1. First ordered list item | ||
2. Another item | ||
* Unordered sub-list. | ||
1. Actual numbers don't matter, just that it's a number | ||
1. Ordered sub-list | ||
- Unordered sub-list. | ||
3. Actual numbers don't matter, just that it's a number | ||
1. Ordered sub-list | ||
4. And another item. | ||
|
||
# Footnotes | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras eget turpis nec justo volutpat efficitur. Sed ac sapien in magna faucibus faucibus eu sed nisl. Aenean non tristique odio, eu condimentum nisl. Suspendisse porttitor ante id lectus pharetra, id pretium odio lacinia. Vestibulum auctor volutpat pharetra. Nam rhoncus dapibus enim eget ornare.[^1] Phasellus convallis nisi a efficitur iaculis.[^2] Etiam tempus massa diam, sit amet lacinia metus suscipit sit amet. Nunc consequat ligula ac auctor mollis. Integer accumsan ornare neque, id dapibus elit. Ut accumsan lacinia metus nec luctus.[^3] | ||
[^1]: Here is the footnote. | ||
[^2]: Here is the second footnote. | ||
[^3]: Here's one with multiple blocks. | ||
Subsequent paragraphs are indented to show that they belong to the previous footnote.` | ||
} | ||
]; | ||
|
||
export default snippets; | ||
Subsequent paragraphs are indented to show that they belong to the previous footnote. |
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