md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
git clone https://noulin.net/git/md4c.git
Log | Files | Refs | README | LICENSE

strikethrough.txt (841B)


      1 
      2 # Strikethrough
      3 
      4 With the flag `MD_FLAG_STRIKETHROUGH`, MD4C enables extension for recognition
      5 of strike-through spans.
      6 
      7 Strikethrough text is any text wrapped in tildes (~).
      8 
      9 ```````````````````````````````` example
     10 ~Hi~ Hello, world!
     11 .
     12 <p><del>Hi</del> Hello, world!</p>
     13 ````````````````````````````````
     14 
     15 Any number of tildes may be used on either side of the text; they do not need
     16 to match, and they cannot be nested.
     17 
     18 ```````````````````````````````` example
     19 This ~text~~~~ is ~~~~curious~.
     20 .
     21 <p>This <del>text</del> is <del>curious</del>.</p>
     22 ````````````````````````````````
     23 
     24 As with regular emphasis delimiters, a new paragraph will cause the cessation
     25 of parsing a strikethrough:
     26 
     27 ```````````````````````````````` example
     28 This ~~has a
     29 
     30 new paragraph~~.
     31 .
     32 <p>This ~~has a</p>
     33 <p>new paragraph~~.</p>
     34 ````````````````````````````````