smu

Simple markup processor
git clone https://git.sinitax.com/codemadness/smu
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

testdoc (3263B)


      1smu test
      2========
      3
      4simple tests
      5------------
      6
      7first paragraph.
      8testing surround: _emph_ then **strong** and `code`.
      9
     10`\`escaped backticks\``.
     11
     12`x = *y * 6;`
     13
     14horizontal rule:
     15
     16- - -
     17
     18---
     19
     20
     21blocks and entities
     22-------------------
     23
     24preformatted block:
     25	.'''' .'.'. |  |
     26	 '''. | ' | |  |
     27	''''  '   '  ""
     28
     29quoted text:
     30> When in doubt,
     31> use brute force.
     32
     33list:
     34* Make each program do one thing well.
     35* Expect the output of every program to become the input to another,
     36as yet unknown, program.
     37* Design and build software, even operating systems, to be tried early,
     38ideally within weeks.
     39* Use tools in preference to unskilled help to lighten a programming task.
     40
     41list in list:
     42* a
     43  * b
     44    1. c
     45    2. d
     46  * e
     47* f
     48
     49entity: &, <, >
     50
     51code:
     52	int powerof2(unsigned int n) {
     53		return !((n - 1) & n) && n > 0;
     54	}
     55
     56links
     57-----
     58
     59link: [suckless](http://suckless.org/)
     60
     61link with title: [suckless](http://suckless.org/ "software that sucks less")
     62
     63link with title (single quote): [suckless](http://suckless.org/ 'software that sucks less')
     64
     65link with trailing spaces: [suckless](http://suckless.org/    )
     66
     67link with leading spaces: [suckless](     http://suckless.org/    )
     68
     69link with (): (see [RFC8259 - 8.1. Character Encoding](https://tools.ietf.org/html/rfc8259#section-8.1)).
     70
     71link with entities: [link](https://codemadness.org/?bla=2&bla2="3")
     72
     73link with empty title: [link](http://a "")
     74
     75link with spaces in URL: [link](http://a/b c)
     76
     77link with image dimensions (should be ignored): [link](http://a/b =2x2)
     78
     79images
     80------
     81
     82image: ![](http://st.suckless.org/screenshots/20h-2012-s.png)
     83
     84image with alt text: ![alt text](http://st.suckless.org/screenshots/20h-2012-s.png)
     85
     86image with title: ![alt text](http://st.suckless.org/screenshots/20h-2012-s.png "screenshot of st")
     87
     88image with title (single quote): ![alt text](http://st.suckless.org/screenshots/20h-2012-s.png 'screenshot of st')
     89
     90image with unclosed title (single quote): ![alt text](http://st.suckless.org/screenshots/20h-2012-s.png "screenshot of st)
     91
     92image with no title and dimensions: ![alt text](http://st.suckless.org/screenshots/20h-2012-s.png =12x34)
     93
     94image with title and dimensions: ![alt text](http://st.suckless.org/screenshots/20h-2012-s.png "screenshot of st" =12x34)
     95
     96image with title and dimensions different order: ![alt text](http://st.suckless.org/screenshots/20h-2012-s.png =12x34 "screenshot of st")
     97
     98image with title and dimensions (no width): ![alt text](http://st.suckless.org/screenshots/20h-2012-s.png "screenshot of st" =x34)
     99
    100image with title and dimensions (no height): ![alt text](http://st.suckless.org/screenshots/20h-2012-s.png "screenshot of st" =12x)
    101
    102image with title and dimensions with spaces: ![alt text](http://st.suckless.org/screenshots/20h-2012-s.png
    103	=12x34    
    104	"screenshot of st"    )
    105
    106image with empty title: ![alt text](http://st.suckless.org/screenshots/20h-2012-s.png "")
    107
    108linked thumbnail image: [![alt text](thumb.png "click to open" =12x34)](img.png)
    109
    110inline html
    111-----------
    112
    113<center>
    114	ABC
    115</center>
    116
    117
    118titles
    119------
    120
    121h1 no need to match exactly
    122===
    123
    124h2 no need to match exactly
    125---
    126
    127h1 no need to match exactly
    128=
    129
    130h2 no need to match exactly
    131-
    132
    133this one is not a title
    134 -
    135
    136## title
    137- a
    138
    139## title
    140-- a
    141
    142## title
    143--
    144
    145a
    146-
    147
    148aa
    149--
    150
    151abc
    152---
    153
    154abc
    155----------