Pandoc passes additional data to Lua filters by setting global variables.


--> add them to .doc ???


add a from_json



BUG??
def attach(element, parent, location):
    if not isinstance(element, (int, str, bool)):
        element.parent = parent
        element.location = location
    else:
        print(element, 'has no parent')
    return element
PRINT ??? AND HAS NO PARENT? WHY NOT ERROR






class ForceSlots(type):
	@classmethod
	def __prepare__(metaclass, name, bases, **kwds):
		return {'__slots__': ()}




remove
api_version stuff






This is redundant b/c should already be the default in Element!!
    def to_json(self):
        return {'t': 'Space'}

remove everything with word legacy



Add a len() method??


https://pandoc.org/filters.html