User Tools

Site Tools


res:plugins:parsedown

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
res:plugins:parsedown [2025/03/03 22:09] – created | Parsedown plugin fraenkimanres:plugins:parsedown [2025/03/03 23:18] (current) – created | Parsedown plugin fraenkiman
Line 2: Line 2:
 Author: [[https://frank-web.dedyn.io|Fraenkiman]], based on a fork of [[https://github.com/erusev/parsedown|Emanuil Rusev]] Author: [[https://frank-web.dedyn.io|Fraenkiman]], based on a fork of [[https://github.com/erusev/parsedown|Emanuil Rusev]]
  
-==== Description ====+===== Description =====
 Parsedown is an efficient, modern PHP implementation of Markdown syntax originally developed Parsedown is an efficient, modern PHP implementation of Markdown syntax originally developed
 by John Gruber. by John Gruber.
Line 16: Line 16:
 Why Parsedown? It's faster, more consistent and is being actively developed. Why Parsedown? It's faster, more consistent and is being actively developed.
  
-Parsedown passes most CommonMark tests. The tests that fail are more unusual cases.+[[https://parsedown.org/|Parsedown]] passes most CommonMark tests. The tests that fail are more unusual cases.
 However, as CommonMark continues to evolve, compliance should improve. However, as CommonMark continues to evolve, compliance should improve.
  
 Parsedown was tested with FlatPress 1.4 Notturno RC1 1899 under PHP 8.4. Parsedown was tested with FlatPress 1.4 Notturno RC1 1899 under PHP 8.4.
  
-==== Download ====+===== Markdown syntax ===== 
 +==== Headers (Setext) ==== 
 +<code>This is an H1  
 +===============  
 + 
 +This is an H2  
 +--------------- </code> 
 + 
 +==== Headers (atx) ==== 
 +<code># This is an H1  
 + 
 +## This is a H2  
 + 
 +###### This is a H6  
 + 
 +# This is a H1 #  
 + 
 +## This is a H2 ##  
 + 
 +### This is a H3 ###### </code> 
 + 
 +==== Quotes ==== 
 +<code>> This is a two paragraph quote. The customer should be very satisfied,  
 +> consectetuer adipiscing elit. I have decided to  
 +a policeman. Vestibulum enim visi, viverra nec, fringilla in, laoreet  
 +> vitae, risus.  
 +>>  
 +Until then, it will be fun. Some people always want to be very happy.  
 +> Suspendisse id sem consectetuer libero luctus adipiscing.  
 + 
 +> This is a two paragraph quote It is important to have good customer service,  
 +a customer service provider. I decided to use a policeman.  
 +For the vestibule, we saw: Viverra nec, Fringilla in, Laoreet vitae,  
 +Risus.  
 + 
 +> Until it's fun to play. Some people always want to be very happy.  
 +Suspendisse id sem consectetuer libero luctus adipiscing.  
 + 
 +> Today is the first day Quote level.  
 +>  
 +> > This is a nested quote  
 +>>  
 +Back to the first level  
 + 
 +> ## This is a headline  
 +>  
 +> 1. this is the first list item.  
 +> 2. this is the second list item  
 +>  
 +> Here is a small example code:  
 +>  
 +> return shell_exec("echo $input | $Markdown_script"); </code> 
 + 
 +==== Lists ==== 
 +<code>* Red  
 +* Green  
 +* Blue  
 + 
 ++ Red  
 ++ green  
 ++ Blue  
 + 
 +- red  
 +- green  
 +- blue  
 + 
 +1. dog  
 +2. cat  
 +3. mouse  
 + 
 +* Lorem ipsum dolor let amet, consectetuer adipiscing elit.  
 +  I decided to use a policeman. For the vestibule we have seen:  
 +  Viverra nec, Fringilla in, Laoreet vitae, Risus.  
 +* Until it's fun to play. Some people always want to be very happy.  
 +  Suspendisse id sem consectetuer libero luctus adipiscing.  
 +   
 +* Warsteiner  
 +* King  
 + 
 +* Warsteiner 2  
 + 
 +* King 2  
 + 
 +1 This is a list item with two paragraphs. It is important to,  
 +  to have good customer service, a customer service provider. I decided to,  
 +  to use a policeman.  
 + 
 +  For the vestibule, we saw: Viverra nec, Fringilla in, Laoreet  
 +  vitae, Risus. Until then, it will be fun.  
 +  Some people always want to be very happy .  
 + 
 +2 Suspendisse id sem consectetuer libero luctus adipiscing. 
 + 
 + 
 +* This is a two-paragraph list item.  
 + 
 + This is the second paragraph in this list item. Only the  
 +first line must be indented It is important to have good customer service,  
 +a customer service provider.  
 + 
 +* Another item in the same list.  
 + 
 +* A list item with a quote:  
 +    > This is a quote  
 +    > In a list.  
 + 
 +* A list item with a code example:  
 +    <insert code here> </code> 
 + 
 + 
 +==== Simple tables ==== 
 +<code>First Header  | Second Header 
 +------------- | ------------- 
 +Content Cell  | Content Cell 
 +Content Cell  | Content Cell 
 + 
 +| First Header  | Second Header | 
 +| ------------- | ------------- | 
 +| Content Cell  | Content Cell  | 
 +| Content Cell  | Content Cell  | </code> 
 + 
 +A colon at the left of the separator line will make the column left-aligned; a colon on the right of the line will make the column right-aligned; colons at both side means the column is center-aligned. 
 + 
 +<code>| Item      | Value | 
 +| --------- | -----:| 
 +| Computer  | $1600 | 
 +| Phone       $12 | 
 +| Pipe      |    $1 | </code> 
 + 
 +==== Links ==== 
 +<code>This is [an example](http://example.com/ "The link title") for an inline link.  
 +an inline link.  
 + 
 +[This link](http://example.net/) has no title attribute  
 + 
 +There is more information on the [About me](/about/) page.  
 + 
 +This is [an example] [id] for a reference link  
 +[id]: http://example.com/ "Enter optional title here"  
 + 
 +[id]: <http://example.com/> "Optional title here" 
 + 
 +[Link back to header 1](#header1) </code> 
 + 
 + 
 +==== Automatic links ==== 
 +<code><https://example.com/> 
 + 
 +<address@example.com> </code> 
 + 
 + 
 +==== Emphasis ==== 
 +<code>*Single asterisk  
 + 
 +_Single underline_  
 + 
 +**Double asterisks**  
 + 
 +__double underlines__  
 + 
 +Lord*God*sacrament  
 + 
 +\*This text is enclosed by asterisks.\*  
 + 
 +*italics*, **bold** and ***bold italics*** or  
 +_italic_, __bold__ and ___bold italic___ </code> 
 + 
 + 
 +==== Code ==== 
 +<code>This is a normal paragraph.  
 +    The tag is a code block.  
 + 
 +An example in AppleScript:  
 +    tell application "Foo"  
 +        beep  
 +    end tell 
 + 
 +Use the `printf()` function to output text  
 +``Somewhere here (`) a backtick is hidden.``  
 + 
 +Nobody uses ``<blink>` tags 
 + 
 +```` 
 +<?php  
 +       echo "Hello"; 
 +?> 
 +```` 
 + 
 +This is a paragraph introducing: 
 +~~~~~~~~~~~~~~~~~~~~~ 
 +a one-line code block 
 +~~~~~~~~~~~~~~~~~~~~~ 
 + 
 +`````````````````` 
 +another code block 
 +`````````````````` 
 + 
 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
 +<p>paragraph <b>emphasis</b> 
 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
 + 
 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
 +<p>paragraph <b>emphasis</b> 
 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ </code> 
 + 
 + 
 +==== Graphics ==== 
 +<code>[Alternative text](https://www.flatpress.org/fp-interface/themes/official-site/imgs/fp-logo.png)</code> 
 + 
 +<code>[Alternative text](https://www.flatpress.org/fp-interface/themes/official-site/imgs/fp-logo.png "Optional title")</code> 
 + 
 + 
 +==== Images ==== 
 +Inline image syntax looks like this: 
 +<code>![Alt text](https://www.flatpress.org/fp-interface/themes/official-site/imgs/fp-logo.png)</code> 
 + 
 +<code>![Alt text](https://www.flatpress.org/fp-interface/themes/official-site/imgs/fp-logo.png "Optional title")</code> 
 + 
 +Inline iamge with external URL: 
 +<code>[![Alt text](https://www.flatpress.org/fp-interface/themes/official-site/imgs/fp-logo.png "FlatPress-Logo")](https://google.com)</code> 
 + 
 + 
 +==== Backslash masking ==== 
 +<code>\*Surrounded by asterisks\* </code> 
 + 
 + 
 +==== Bulleted lists nested in a numbered list ==== 
 +<code>1. fruit  
 +    * Apple  
 +    * Banana  
 +2. vegetable  
 +    - carrot  
 +    - broccoli </code> 
 + 
 + 
 +==== Horizontal Rules ==== 
 + 
 +<code> 
 +* * * 
 +*** 
 +***** 
 +- - -</code> 
 + 
 + 
 +===== License ===== 
 +[[https://github.com/erusev/parsedown/blob/master/LICENSE.txt|MIT]] 
 + 
 +===== Download =====
 {{ res:plugins:frank:parsedown1_0_0.zip|}} {{ res:plugins:frank:parsedown1_0_0.zip|}}
  
Line 31: Line 278:
 **Support** **Support**
  
-Please ask for help on the [[https://forum.flatpress.org|FlatPress Forum]]+Please ask for help on the [[https://forum.flatpress.org/viewtopic.php?t=856|FlatPress Forum]]
res/plugins/parsedown.1741036194.txt.gz · Last modified: 2025/03/03 22:09 by fraenkiman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki