$ brew install pandocpyast = json.loads(pypandoc.convert_file("2-0-....md", "json"))pyIn [18]: ast['blocks'][0]
Out[18]:
{'t': 'Header',
'c': [1,
['information-technology-and-democracy-a-widening-gulf', [], []],
[{'t': 'Str', 'c': 'Information'},
{'t': 'Space'},
{'t': 'Str', 'c': 'Technology'}, ...pyIn [19]: ast['blocks'][1]
Out[19]:
{'t': 'BlockQuote',
'c': [{'t': 'Para',
'c': [{'t': 'Quoted',
'c': [{'t': 'DoubleQuote'},
[{'t': 'Str', 'c': 'Surveillance'},
{'t': 'Space'},
{'t': 'Str', 'c': 'capitalism'}, ...