mirror of
https://github.com/9001/copyparty.git
synced 2025-10-03 01:39:26 +02:00
add markdown viewer
This commit is contained in:
parent
fc5c815824
commit
1c49b71606
11 changed files with 1465 additions and 7 deletions
155
srv/test.md
Normal file
155
srv/test.md
Normal file
|
@ -0,0 +1,155 @@
|
|||
*fails marked/showdown/tui/simplemde (just italics), **OK: markdown-it/simplemde:***
|
||||
testing just google.com and underscored _google.com_ also with _google.com,_ trailing comma and _google.com_, comma after
|
||||
|
||||
*fails tui (just italics), **OK: marked/showdown/markdown-it/simplemde:***
|
||||
testing just https://google.com and underscored _https://google.com_ links like that
|
||||
|
||||
*fails marked (no markup) and showdown/tui/simplemde (no links at all), **OK: markdown-it:***
|
||||
let's try <google.com> bracketed and _<google.com>_ underscored bracketed
|
||||
|
||||
*fails marked (literal underscore), **OK: showdown/markdown-it/simplemde:***
|
||||
let's try <https://google.com> bracketed and _<https://google.com>_ underscored bracketed
|
||||
|
||||
*fails none:*
|
||||
and then [google](google.com) verbose and _[google](google.com)_ underscored
|
||||
|
||||
*fails none:*
|
||||
and then [google](https://google.com/) verbose and _[google](https://google.com/)_ underscored
|
||||
|
||||
*all behave similarly (only verbose ones):*
|
||||
and then <local> or maybe <./local> fsgfds </absolute> fsgfds
|
||||
and then [local] or maybe [./local] fsgfds [/absolute] fsgfds
|
||||
and then (local) or maybe (./local) fsgfds (/absolute) fsgfds
|
||||
and then [](local) or maybe [](./local) fsgfds [](/absolute) fsgfds
|
||||
and then [.](local) or maybe [.](./local) fsgfds [.](/absolute) fsgfds
|
||||
and then [asdf](local) or maybe [asdf](./local) fsgfds [asdf](/absolute) fsgfds
|
||||
|
||||
*`ng/OK/OK/OK markdown-it`
|
||||
`ng/OK/ng/OK marked`
|
||||
`ng/OK/OK/OK showdown`
|
||||
`OK/OK/OK/OK simplemde`*
|
||||
[with spaces](/with spaces) plain, [with spaces](/with%20spaces) %20, [with spaces](</with spaces>) brackets, [with spaces](/with%20spaces) %20
|
||||
|
||||
*this fails marked, **OK: markdown-it, simplemde:***
|
||||
|
||||
* testing a list with:
|
||||
`some code after a newline`
|
||||
|
||||
* testing a list with:
|
||||
just a newline
|
||||
|
||||
and here is really just
|
||||
a newline toplevel
|
||||
|
||||
*this fails showdown/hypermd, **OK: marked/markdown-it/simplemde:***
|
||||
|
||||
* testing a list with
|
||||
|
||||
code here
|
||||
and a newline
|
||||
this should have two leading spaces
|
||||
|
||||
* second list level
|
||||
|
||||
more code here
|
||||
and a newline
|
||||
this should have two leading spaces
|
||||
|
||||
.
|
||||
|
||||
* testing a list with
|
||||
|
||||
code here
|
||||
and a newline
|
||||
this should have two leading spaces
|
||||
|
||||
* second list level
|
||||
|
||||
more code here
|
||||
and a newline
|
||||
this should have two leading spaces
|
||||
|
||||
*this fails stackedit, **OK: showdown/marked/markdown-it/simplemde:***
|
||||
|
||||
|||
|
||||
|--|--|
|
||||
| a table | with no header |
|
||||
| second row | foo bar |
|
||||
|
||||
*this fails showdown/stackedit, **OK: marked/markdown-it/simplemde:***
|
||||
|
||||
|||
|
||||
|--|--:|
|
||||
| a table | on the right |
|
||||
| second row | foo bar |
|
||||
|
||||
* list entry
|
||||
* [x] yes
|
||||
* [ ] no
|
||||
* another entry
|
||||
|
||||
# s1
|
||||
## ep1
|
||||
## ep2
|
||||
# s2
|
||||
## ep1
|
||||
## ep2
|
||||
# s3
|
||||
## ep1
|
||||
## ep2
|
||||
|
||||
|
||||
#######################################################################
|
||||
|
||||
|
||||
|
||||
marked:
|
||||
works in last ff/chrome for xp
|
||||
bug: config{breaks:true} does nothing in 1.0
|
||||
use whitespace, no tabs
|
||||
|
||||
showdown:
|
||||
ie6 and ie8 broken, works in last ff/chrome for xp
|
||||
|
||||
markdown-it:
|
||||
works in last ff/chrome for xp
|
||||
use whitespace, no tabs
|
||||
no header anchors
|
||||
|
||||
tui wysiwyg:
|
||||
requires links to be <http://> or [title](location)
|
||||
|
||||
|
||||
|
||||
links:
|
||||
http://demo.showdownjs.com/
|
||||
https://marked.js.org/demo/
|
||||
https://markdown-it.github.io/
|
||||
https://simplemde.com/
|
||||
|
||||
|
||||
|
||||
all-pass:
|
||||
|
||||
https://github.com/joemccann/dillinger
|
||||
https://dillinger.io/
|
||||
uses markdown-it
|
||||
|
||||
https://github.com/markdown-it/markdown-it
|
||||
https://markdown-it.github.io/
|
||||
|
||||
|
||||
|
||||
almost-all-pass:
|
||||
|
||||
https://simplemde.com/
|
||||
|
||||
https://github.com/nhn/tui.editor
|
||||
https://nhn.github.io/tui.editor/latest/tutorial-example01-editor-basic
|
||||
ie10 and up
|
||||
|
||||
|
||||
|
||||
unrelated neat stuff:
|
||||
https://github.com/gnab/remark
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue