Markdown Note
Learning material (zhCN)#
- I wrote this on 2021-10-09
- Copy it to a markdown renderer to see formatted version.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |
GitHub flavor markdown#
- This is used in GitHub Wiki
Additional syntax rules#
- @2021-09-20
- Cannot embed video. Best work-around so far I'v seen is to add a video screen shot with hyperlink referring to the video address.
- Had to use
<code/>tag to quote`(backtick character),GHDoesn't support`nor\nor\tag in internal link[[]] - Cannot import an
MDto another. Best work-around: link wiki page of same repo:../../wikireason here:github/markup#346andgithub/markup#172.
GitHub flavor markdown Links#
- @2021-10-03
- Internal link like
[[]]support syntax[[shown|title#chapter]]name with-(dash),(space). Omit the space is not working, only inchapterit won't resolve the link, intitleit will report an error with red font color and direct to create a new page. - Examples:
1 2 3 4 5 6 7 8 9 | |
GH Wiki Local Env#
- @2021-10-29
-
How to: Pull from the URL on the right side then do the normal git things
bash git init git remote add origin https://github.com/Pablion/Pablion.wiki.git git pull origin master
- Use it like a normal repo.
- [ ] #TODO Any tool for the local env? I found no extension that supports the
Linksyntax[[shown|title#chapter]].
Obsidian flavor markdown#
Links in Obsidian#
- @2021-12-14
- Internal link like
[[link|shown]]is reverse to GitHub Flavor[[shown|link]] - Easy fix with regex substitution
/\[\[(.+)\|(.+)\]\]/g=>[[$2|$1]]
Markdown specifications#
- @2021-01-26
- There are two most popular Markdown specifications mentioned in the discussion of mkdocs/mkdocs#2761. And they are used on different projects.
| CommonMark spec | original Markdown spec |
|---|---|
| GitHub | Python-markdown |
Prettier VSCode extension |
mkdocs |
Render Pipe character in table#
- @2021-01-26
- Use this way to render a pipe char
|in code tag table.
1 2 3 | |
General#
Footnote with link#
Front matter#
- First thing in the file
- must take the form of valid YAML set (between triple-dashed lines).
- For example and extra reading: Front matter - jekyllrb