🕸Fergus Duniho wrote on Mon, Jul 13, 2020 01:50 AM UTC:
I have installed ParsedownExtra to handle Markdown Extra. I have also changed it to allow HTML to be used with Markdown. Here are some tests. Most are copied and pasted from the Markdown Guide's Extended Syntax page or from PHP Markdown Extra.
This is a test of how it handles code blocks. It does not do syntax highlighting.
// A useful debugging function for identifying the exact contents of a string
// Added by Fergus Duniho 4/6/2012
function show_ascii_code($text) {
$len = strlen($text);
for ($i = 0; $i < $len; $i++) {
echo ord($text{$i}) . "/";
}
}
Testing tables
Syntax
Description
Header
Title
Paragraph
Text
Testing alignment of text in table cells
Syntax
Description
Test Text
Header
Title
Here's this
Paragraph
Text
And more
Testing footnotes
Here's a simple footnote,[^1] and here's a longer one.[^bignote]
Testing definition lists
First Term
This is the definition of the first term.
Second Term
This is one definition of the second term.
This is another definition of the second term.
Testing strikethrough
The world is flat. We now know that the world is round.
I have installed ParsedownExtra to handle Markdown Extra. I have also changed it to allow HTML to be used with Markdown. Here are some tests. Most are copied and pasted from the Markdown Guide's Extended Syntax page or from PHP Markdown Extra.
This is a test of how it handles code blocks. It does not do syntax highlighting.
Testing tables
Testing alignment of text in table cells
Testing footnotes
Here's a simple footnote,[^1] and here's a longer one.[^bignote]
Testing definition lists
Testing strikethrough
The world is flat.We now know that the world is round.Testing task lists
grinning:
grinning_face:
Testing pasting an emoji
?
Testing automatic URL linking
https://www.chessvariants.com
Testing the disabling of automatic URL linking
https://www.chessvariants.com
Testing Markdown inside HTML DIV
Trying it again with markdown set to "1"
This is italics, and this is bold.
Testing abbreviations
The HTML specification is maintained by the W3C.
Testing underscores vs asterisks for emphasizing text within a word.
Please open the folder "secret_magic_box".
Please open the folder "secretmagicbox".