new md to json added

This commit is contained in:
dachus 2023-02-11 21:49:17 -06:00
parent 643fd11bea
commit 846e346f1f

21
mar/md.hoon Normal file
View File

@ -0,0 +1,21 @@
::
:::: /hoon/md/mar
::
/? 310
::
=, format
=, mimes:html
|_ txt=wain
::
++ grab :: convert from
|%
++ mime |=((pair mite octs) (to-wain q.q))
++ noun wain :: clam from %noun
--
++ grow
|%
++ mime [/text/plain (as-octs (of-wain txt))]
++ json [%s (of-wain txt)]
--
++ grad %mime
--