mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-29 12:15:43 +03:00
bac25edb79
sed -i'' -e '/^|/{x;/./{p;s/.*//;};x;};/ *\\/-.*\\*/{h;s/ //g;s/,[a-z]*//g;s/^[^a-z]*/[/;s/ *::.*$//;s/$/ .]/;s/*/ /g;x;s/\\*//g;}' urb/zod/**.{hoon,hook} Followed by manual fixes where e.g. the file didn't start with a core
35 lines
858 B
Plaintext
35 lines
858 B
Plaintext
::
|
|
:::: /hoon/down/mar
|
|
::
|
|
/? 314
|
|
/- markdown
|
|
/+ down-jet
|
|
::
|
|
::::
|
|
::
|
|
[markdown .]
|
|
|_ [atr=(map cord cord) don=down]
|
|
++ grab :: convert from
|
|
|%
|
|
++ mdy |=([atr=_atr src=@t] [atr (mark:down-jet src)])
|
|
++ noun ,[(map cord cord) down] :: clam from %noun
|
|
--
|
|
::
|
|
++ grow :: convert into
|
|
|%
|
|
++ hymn :: convert to %hymn
|
|
;html
|
|
;head:title:"Untitled"
|
|
;body ;* +:elem
|
|
==
|
|
==
|
|
++ elem :: convert to %elem
|
|
=+ jon=`json`o/(~(run by atr) |=(cord s/+<))
|
|
;div
|
|
;* :- ;meta(value "{(pojo jon)}", name "frontmatter", urb_front "");
|
|
(print:down-jet don)
|
|
==
|
|
:: ++ react elem
|
|
--
|
|
--
|