Package: vml-parser
vmlvelocitous markup language(Totally not related withVML-SVG)This is a JSON parser for a markup language, if you want to call it like that, that i found myself using while jolting notes in thefastestmost velocitous, and laziest way that i could think of... It goes pretty much like this:element 1
	things
		dog
		[x] snacks
			[ ] apple
			pear
		house
	names
		james
		alfred
[ ] element 2
	foo
	bar
	baz
foobarThat translates to this bulky JSON. You see, it makes JSON look bulky!!![
    {
        "element 1": [
            {
                "things": [
                    "dog",
                    {
                        "snacks": [
                            {
                                "apple": [],
                                "checked": false
                            },
                            "pear"
                        ],
                        "checked": true
                    },
                    "house"
                ]
            },
            {
                "names": [
                    "james",
                    "alfred"
                ]
            }
        ]
    },
    {
        "element 2": [
            "foo",
            "bar",
            "baz"
        ],
        "checked": false
    },
    "foobar"
]vml uses tabs to differentiate the hierarchical level of the current line... i think you got what i mean. Plus, you can also add checkboxes to every line with "[ ]", and you can check it with "[x]", and all this translates to a "checked" property in the JSON representation. It's easy to write vml with vi, for example you might check an empty checkbox withrxand move around tabulations efficiently with>>or<<. In fact, this should really have been called tml, as intab markup language, but unfortunately, that resembled too much TOML, dammit you Tom!!Install this withpip3 install vml-parser.import it withfrom vml_parser import vml, so you that you can access thevml.parse(s : list[str]) -> list[Element]method. A list of Elements gives you a middleware representation of what's in your vml. You might, vice versa, build up programmatically your list of Elements, andvml.dump(obj: list[Element]) -> list[str]for a later use. You now can also dump a list of JSON strings to a vml-formatted list of lines withvml.dumps(lines: list[str]) -> list[str].You will also get thevmlcommand line script for free! (it pairs neatly with thejqcli). You can pipe it to stdout or you can pass it any number of filenames for it to read, and with-dyou can use the included JSON to vml dumper. Have fun with it laying crazy pipes like... | vml | vml -d | vml | vml -d | ...!! When passing multiple files, this trick is actually useful, as it will merge all the files into one vml file or dump all json data from different files in one big vml.
Now there is also a-mor--markdownoption to convert vml to markdown. This is to be compliant withextended markdown. When passing a single file, top level elements will be converted to ah1header, and subelements toh2headers. When passing multiple files, each file name will be ah1header, where_and-are replaced with. All other sub elements will be converted to list items, indented accordingly.With pandoc, when converting to html or pdf, latex math works (with-sand--mathjax) with elements that are surrounded by$like$\exp{x}$and footnotes also work with[^1]and[^1]:.tools suggested for optimal experiencevscodepython3pandocGNU makejq