Richer markdown example in the playground (#4176)

* Richer markdown example in the playground

* Link is back
master
Lipis 2018-03-19 16:32:06 +02:00 committed by GitHub
parent 31530259a1
commit feb41a5516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 1 deletions

View File

@ -496,18 +496,31 @@ function getExample(parser) {
].join("\n");
case "markdown":
return [
"Header",
"======",
"",
"_Look,_ code blocks are formatted *too!*",
"",
"``` js",
"function identity(x) { return x }",
"```",
"",
"Pilot|Airport|Hours",
"--|:--:|--:",
"John Doe|SKG|1338",
"Jane Roe|JFK|314",
"",
"- - - - - - - - - - - - - - -",
"",
"+ List",
" + with a [link] (/to/somewhere)",
"+ and [another one]",
"",
"",
" [another one]: http://example.com 'Example title'"
" [another one]: http://example.com 'Example title'",
"",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"Curabitur consectetur maximus risus, sed maximus tellus tincidunt et."
].join("\n");
case "vue":
return [