Parsedown cheat sheet.markdown.

Isa sa mga pinakamahusay na MarkDown parser sa PHP ay siyempre Parsedown.Syempre meron din Textile pero sobrang nakakatakot pero for a change try mo din.Sa dokumentong ito, susuriin namin ang buong syntax ng Parsedown.Kinuha namin ang mga halimbawa mula sa opisyal na website at inilagay ang mga ito upang maging maginhawa para sa iyo na mabilis na mahanap ang halimbawang kailangan mo sa isang pahina.

Kaya, Parsedown cheat sheet.

mesa



| header 1 | header 2 |
| -------- | -------- |
| cell 1.1 | cell 1.2 |
| cell 2.1 | cell 2.2 |

Pag-align ng Table

| header 1 | header 2 | header 2 |
| :------- | :------: | -------: |
| cell 1.1 | cell 1.2 | cell 1.3 |
| cell 2.1 | cell 2.2 | cell 2.3 |

Mga pamagat

# h1

## h2

### h3

#### h4

##### h5

###### h6

####### not a heading

# closed h1 #

#

Mga awtomatikong link

<http://example.com>

HTML

<div>_content_</div>

paragraph

<div>
  <div class="inner">
    _content_
  </div>
</div>

<style type="text/css">
  p {color: #789;}
</style>

<div>
  <a href="/">home</a></div>

bloke ng code

    <?php
    $message = 'Hello World!';
    echo $message;
---
    > not a quote
    - not a list item
    [not a reference]: http://foo.com

Code bawat linya

a `code span`
`this is also a codespan` trailing text
`and look at this one!`
single backtick in a code span: `` ` ``
backtick-delimited string in a code span: `` `foo` ``
`sth `` sth`

Mga quotes

> header
> ------
>
> paragraph
>
> - li
>
> ---
>
> paragraph

Pagpili ng isang bahagi ng teksto

_`code`_ __`code`__
*`code`**`code`**`code`*

Mga listahan

- paragraph
  paragraph
- paragraph
  > quote

Mga Naka-nest na Listahan

- li
    - li
        - li
        - li
    - li
- li

Thumbnail

___em strong___
___em strong_ strong__
__strong _em strong___
__strong _em strong_ strong__
***em strong***
***em strong* strong**
**strong *em strong***
**strong *em strong* strong**

Mail

my email is <me@example.com>

Mga highlight ng teksto

_underscore_, *asterisk*, _one two_, *three four*, _a_, *b*
**strong** and *em* and **strong** and *em*
_line
line
line_
this_is_not_an_emphasis
an empty emphasis __ ** is not an emphasis
*mixed **double and* single asterisk** spans

Mga character na tumatakas

escaped \*emphasis\*.
`escaped \*emphasis\* in a code span`
    escaped \*emphasis\* in a code block
\\ \` \* \_ \{ \} \[ \] \( \) \> \# \+ \- \. \!
_one\_two_ __one\_two__
*one\*two* **one\*two**

Mga Markup para sa Mga Block ng Code

```
<?php

$message = 'fenced code block';
echo $message;
```

~~~
tilde
~~~

```php
echo 'language identifier';
```

```c#
echo 'language identifier with non words';
```

```html+php
<?php
echo "Hello World";
?>
<a href="http://auraphp.com" >Aura Project</a>
```

```php some-class
<?php
echo "Hello World";
```

Pahalang na linya

---
- - -
   - - -
***
___

Mga komento sa html

<!-- single line -->
paragraph
<!-- 
  multiline -->
paragraph

html entity

&amp; &copy; &#123;

Mga larawan

![Markdown Logo][image]
[image]: /md.png
![missing reference]

Header para sa mga larawan

![alt](/md.png "title")
![blank title](/md.png "")

Mga implicit na link

an [implicit] reference link
[implicit]: http://example.com
an [implicit][] reference link with an empty link definition
an [implicit][] reference link followed by [another][]
[another]: http://cnn.com
an [explicit][example] reference link with a title
[example]: http://example.com "Example"

Mga Naka-embed na Link

[link](http://example.com)
[link](/url-(parentheses)) with parentheses in URL 
([link](/index.php)) in parentheses
[`link`](http://example.com)
[![MD Logo](http://parsedown.org/md.png)](http://example.com)
[![MD Logo](http://parsedown.org/md.png) and text](http://example.com)
[![MD Logo](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAUCAYAAADskT9PAAAKQWlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUU9kWh8+9N73QEiIgJfQaegkg0jtIFQRRiUmAUAKGhCZ2RAVGFBEpVmRUwAFHhyJjRRQLg4Ji1wnyEFDGwVFEReXdjGsJ7601896a/cdZ39nnt9fZZ+9917oAUPyCBMJ0WAGANKFYFO7rwVwSE8vE9wIYEAEOWAHA4WZmBEf4RALU/L09mZmoSMaz9u4ugGS72yy/UCZz1v9/kSI3QyQGAApF1TY8fiYX5QKUU7PFGTL/BMr0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lvbj4KICAgICAgICAgPGRjOnN1YmplY3Q+CiAgICAgICAgICAgIDxyZGY6QmFnLz4KICAgICAgICAgPC9kYzpzdWJqZWN0PgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxNS0wNi0xNFQxOTowNjo1OTwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+UGl4ZWxtYXRvciAzLjI8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Ch7v5WoAAAGgSURBVEgNYywtLbVnYmLqYmBgMANieoJT//79K2MBWr4CaKsEPW2G2mUGspsFZnlnZycjPR1RXl7+H2Q3Ez0txWbXgDsAFAUYABo8YPH////HdXV1LUZWVFZWFsvIyLgIJoYt+pDNwCYP00swBIAWzaysrNSCaQCxgWLTYHxKaawhgGYoJzC7rC4sLDQBiYPYQIoHTQ3ZXGIcADJci42NDeZreGiQbSuSRmKiABb/CUB9IMwAjAKYGIhLESAYAj9//kwH+t4YaAvM59c4ODiyvn//HotuMzDh9QLFirCIg/I8CPQBE2QxhAkhCYZAf3//d2CJFQpU/h2EQeyGhoYvyIbA2FDDl8H4aPQydMtB8gQdAFLU3t5+DRjsWSAMYoPEcAFOTs5EoNw+NPl9UHE0YQYGglEA09HR0bEAxsZHA0PnFzAqgoBq9gIxKOrOAnEQSBxIYwCiQgBDFwEBYFB/BEaVJ7AQ2wGiQXxcWhhhJRZQ0UBURsSlAVyup4Y4TaKAFIeBouAJUIM0KZqoqPYpEzBrpQANfEFFQ4k16gXIbgCggnKoJ5DJdwAAAABJRU5ErkJggg==) and text](http://example.com)

Mga built-in na pamagat para sa mga link

[single quotes](http://example.com 'Title')
[double quotes](http://example.com "Title")
[single quotes blank](http://example.com '')
[double quotes blank](http://example.com "")
[space](http://example.com "2 Words")
[parentheses](http://example.com/url-(parentheses) "Title")

Mga naka-embed na header

[single quotes](http://example.com 'Example') and [double quotes](http://example.com "Example")

Lazy Quotes

> quote
the rest of it
> another paragraph
the rest of it

Mga Lazy List

- li
the rest of it

Linya break

line  
line

Multiline na talata sa isang listahan

- li
  line
  line

Mga listahan ng multiline

1. One
   First body copy
2. Two
   Last body copy

Nested Html

<div>
_parent_
<div>
_child_
</div>
<pre>
_adopted child_
</pre>
</div>
_outside_

Mga Inorder na Listahan

1. one
2. two
repeating numbers:
1. one
1. two
large numbers:
123. one

Listahan ng talata

paragraph
- li
- li
paragraph
   * li

   * li

Mga link 2

[double quotes] and [single quotes] and [parentheses]
[double quotes]: http://example.com "example title"
[single quotes]: http://example.com 'example title'
[parentheses]: http://example.com (example title)
[invalid title]: http://example.com example title

Self-closing Html

<hr>
paragraph
<hr/>
paragraph
<hr />
paragraph
<hr class="foo" id="bar" />
paragraph
<hr class="foo" id="bar"/>
paragraph
<hr class="foo" id="bar" >
paragraph

Paghiwalayin ang mga nakasalansan na listahan

- li
    - li
    - li

Mga pamagat.Isa pang variant.

h1
==

h2
--

single character
-

not a header

------------

Simple Quotes

> quote

indented:
   > quote

no space after `>`:
>quote

Mga simpleng mesa

header 1 | header 2
-------- | --------
cell 1.1 | cell 1.2
cell 2.1 | cell 2.2

---

header 1 | header 2
:------- | --------
cell 1.1 | cell 1.2
cell 2.1 | cell 2.2

html inline

an <b>important</b> <a href=''>link</a>

broken<br/>
line

<b>inline tag</b> at the beginning

<span>http://example.com</span>

Mga Listahan 2

- li

- li
- li

Isa pang Halimbawa ng Html

<div>
line 1

line 2
line 3

line 4
</div>

Isa pang halimbawa ng listahan

- li

- li

---

- li

    - indented li

Mga espesyal na simbolo

AT&T has an ampersand in their name

this & that

4 < 5 and 6 > 5

<http://example.com/autolink?a=1&b=2>

[inline link](/script?a=1&b=2)

[reference link][1]

[1]: http://example.com/?a=1&b=2

Strikethrough

~~strikethrough~~

here's ~~one~~ followed by ~~another one~~

~~ this ~~ is not one neither is ~this~

Mga halimbawa ng pagpapalakas ng teksto

*em **strong em***

***strong em** em*

*em **strong em** em*

_em __strong em___

___strong em__ em_

_em __strong em__ em_

Halimbawa ng code block

    <?php

    $message = 'Hello World!';
    echo $message;

    echo "following a blank line";

Markdown sa mga talahanayan

| _header_ 1   | header 2     |
| ------------ | ------------ |
| _cell_ 1.1   | ~~cell~~ 1.2 |
| `|` 2.1      | \| 2.2       |
| `\|` 2.1     | [link](/)    |

Mga link sa text

[reference link][1]

[1]: http://example.com

[one][website] with a semantic name

[website]: http://example.com

[one][404] with no definition

[multiline
one][website] defined on 2 lines

[one][Label] with a mixed case label and an upper case definition

[LABEL]: http://example.com

[one]
[1] with the a label on the next line

[`link`][website]

Mga Hindi Nakaayos na Listahan

- li
- li

mixed markers:

* li
+ li
- li

Curve table

| header 1 | header 2          |
| ------------- | ----------- |
| cell 1.1   | cell 1.2 |
|    cell 2.1 | cell 2.2     |

Mga halimbawa ng autolink

an autolink http://example.com

inside of brackets [http://example.com], inside of braces {http://example.com},  inside of parentheses (http://example.com)

trailing slash http://example.com/ and http://example.com/path/

Mga character na whitespace

    code

Xss attribute encoding

[xss](https://www.example.com")

![xss](https://www.example.com")

[xss](https://www.example.com')

![xss](https://www.example.com')

![xss"](https://www.example.com)

![xss'](https://www.example.com)

Xss Maling address

[xss](javascript:alert(1))

[xss]( javascript:alert(1))

[xss](javascript://alert(1))

[xss](javascript&colon;alert(1))

![xss](javascript:alert(1))

![xss]( javascript:alert(1))

![xss](javascript://alert(1))

![xss](javascript&colon;alert(1))

[xss](data:text/html;base64,PHNjcmlwdD5hbGVydCgxKTwvc2NyaXB0Pg==)

[xss]( data:text/html;base64,PHNjcmlwdD5hbGVydCgxKTwvc2NyaXB0Pg==)

[xss](data://text/html;base64,PHNjcmlwdD5hbGVydCgxKTwvc2NyaXB0Pg==)

[xss](data&colon;text/html;base64,PHNjcmlwdD5hbGVydCgxKTwvc2NyaXB0Pg==)

![xss](data:text/html;base64,PHNjcmlwdD5hbGVydCgxKTwvc2NyaXB0Pg==)

![xss]( data:text/html;base64,PHNjcmlwdD5hbGVydCgxKTwvc2NyaXB0Pg==)

![xss](data://text/html;base64,PHNjcmlwdD5hbGVydCgxKTwvc2NyaXB0Pg==)

![xss](data&colon;text/html;base64,PHNjcmlwdD5hbGVydCgxKTwvc2NyaXB0Pg==)

Xss code packaging

<script>alert(1)</script>

<script>

alert(1)

</script>

<script>
alert(1)
</script>

Ang parsedown tulad ng ipinapakita sa itaas ay may maraming mga nuances, ngunit sumasaklaw sa lahat ng mga pangunahing tampok ng MarkDown.

Paano isama ang Parsedown sa PHP

Ang pagkonekta ng Parsedown sa PHP ay napakasimple, hindi namin kailangan ng kompositor, isang Parsedown.php file lang ay sapat na

$Parsedown = new Parsedown();
echo $Parsedown->text('Hello _Parsedown_!');




bg bs ca ceb co cs cy da de el en eo es et fa fi fr fy ga gd gl gu ha haw hi hmn hr ht hu id ig is it iw ja jw ka kk km kn ko ku ky la lb lo lt lv mg mi mk ml mn mr ms mt my ne nl no ny or pa pl ps pt ro ru rw sd si sk sl sm sn so sr st su sv sw ta te tg th tk tl tr tt ug uk ur uz vi xh yi yo zh zu
Text to speech
QR-Code generator
Parsedown cheatsheet. Markdown
Filter data by column with regular expressions
Engines for creating games on LUA ?
JavaScript: draw a point
JavaScript: Speaking text in Chinese