mirror of
https://github.com/tadad/blog.git
synced 2024-09-11 12:55:07 +03:00
new md to json added
This commit is contained in:
parent
643fd11bea
commit
846e346f1f
21
mar/md.hoon
Normal file
21
mar/md.hoon
Normal 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
|
||||
--
|
Loading…
Reference in New Issue
Block a user