shrub/sur/markdown.hoon

43 lines
1.2 KiB
Plaintext
Raw Normal View History

2016-02-05 05:57:44 +03:00
::
2016-02-05 06:05:37 +03:00
:::: /hoon/markdown/sur
2016-02-05 05:57:44 +03:00
::
2016-02-18 02:25:53 +03:00
/? 310
|%
2014-12-06 00:09:46 +03:00
++ down (list elem)
++ kids (list inline)
++ inline
=+ ^= inlik
$% {$emph p/?} :: strong?
2018-03-19 07:18:20 +03:00
{$delt ~} :: strikethrough
{$link p/tape q/(unit tape)}
{$blot p/tape q/(unit tape)} :: image
2014-12-06 00:09:46 +03:00
==
=+ ^= inlin
$% {$$ p/tape}
2018-03-19 07:18:20 +03:00
{$line ~}
{$code p/tape}
{$htmt p/cord} :: XX (each marx mane)
2014-12-06 00:09:46 +03:00
==
$^({p/inlik q/kids} inlin)
2014-12-06 00:09:46 +03:00
::
::
++ elem $^(tops node)
2014-12-06 00:09:46 +03:00
++ tops :: childful block
$: $= p
2018-03-19 07:18:20 +03:00
$% {$bloq ~}
{$list p/? q/$@(char {p/@u q/char})} :: tight ordered?
2018-03-19 07:18:20 +03:00
{$item ~}
2014-12-06 00:09:46 +03:00
==
q/down
2014-12-06 00:09:46 +03:00
==
++ node :: childless block
$% {$para p/kids}
{$meta p/(map cord cord)} :: front matter
2018-03-19 07:18:20 +03:00
{$hrul ~}
{$head p/@u q/kids}
{$code p/(unit {p/char q/@u r/tape}) q/wain} :: info contents
{$html p/wain}
2018-03-19 07:18:20 +03:00
{$defn ~} :: empty para
2014-12-06 00:09:46 +03:00
==
--