0.6.0 • Published 4 years ago
real-value-unified-md2json v0.6.0
Read markdown file and produces json data structure
Syntax
Hierarchy
Structure of the markdown is
Heading1
    Heading2
        Heading3which becomes
[
        {
            name: <Heading2>
            items: [
                {
                    name: <Heading3>
                }
            ]
        }
]Lists
This
- one
- two
- threbecomes
 "value": [
   {
    "value": "one"
   },
   {
    "value": "two"
   },
   {
    "value": "three"
   }
  ]Links
Values can be of the form
link <source> <relationship> <target>which becomes
"value": {
   "source": "foo",
   "relationship": "rel",
   "target": "bar"
  }Href
Hrefs are current removed
[test](./test)becomes
testHow to use
cat <somemarkddown.md> | node mainRelates to
- Unified - Unified is a capability to parse content and transform to other syntax