Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return {
"pandoc-latex-tip": MetaList(
MetaMap(
classes=MetaList(MetaString("tip"), MetaString("listing")),
icons=MetaList(
MetaMap(
name=MetaString("file-text"),
color=MetaString("darksalmon"),
link=MetaString("http://www.google.fr"),
),
MetaString("comments"),
),
size=MetaString("36"),
position=MetaString("right"),
),
MetaMap(
classes=MetaList(MetaString("warning")),
icons=MetaString("comments"),
),
MetaMap(
classes=MetaList(MetaString("tip")), position=MetaString("left")
),
MetaMap(
classes=MetaList(MetaString("v5.0")),
icons=MetaList(
MetaMap(
name=MetaString("balance-scale"),
version=MetaString("5.x"),
variant=MetaString("solid"),
color=MetaString("orange"),
)
MetaString("comments"),
),
size=MetaString("36"),
position=MetaString("right"),
),
MetaMap(
classes=MetaList(MetaString("warning")),
icons=MetaString("comments"),
),
MetaMap(
classes=MetaList(MetaString("tip")), position=MetaString("left")
),
MetaMap(
classes=MetaList(MetaString("v5.0")),
icons=MetaList(
MetaMap(
name=MetaString("balance-scale"),
version=MetaString("5.x"),
variant=MetaString("solid"),
color=MetaString("orange"),
)
def metadata(cls):
return {
"pandoc-latex-tip": MetaList(
MetaMap(
classes=MetaList(MetaString("tip"), MetaString("listing")),
icons=MetaList(
MetaMap(
name=MetaString("file-text"),
color=MetaString("darksalmon"),
link=MetaString("http://www.google.fr"),
),
MetaString("comments"),
),
size=MetaString("36"),
position=MetaString("right"),
),
MetaMap(
classes=MetaList(MetaString("warning")),
icons=MetaString("comments"),
),
MetaMap(
classes=MetaList(MetaString("tip")), position=MetaString("left")
),
def metadata(cls):
return {
"pandoc-latex-tip": MetaList(
MetaMap(
classes=MetaList(MetaString("tip"), MetaString("listing")),
icons=MetaList(
MetaMap(
name=MetaString("file-text"),
color=MetaString("darksalmon"),
link=MetaString("http://www.google.fr"),
),
MetaString("comments"),
),
size=MetaString("36"),
position=MetaString("right"),
),
MetaMap(
classes=MetaList(MetaString("warning")),
icons=MetaString("comments"),
),
color=MetaString("darksalmon"),
link=MetaString("http://www.google.fr"),
),
MetaString("comments"),
),
size=MetaString("36"),
position=MetaString("right"),
),
MetaMap(
classes=MetaList(MetaString("warning")),
icons=MetaString("comments"),
),
MetaMap(
classes=MetaList(MetaString("tip")), position=MetaString("left")
),
MetaMap(
classes=MetaList(MetaString("v5.0")),
icons=MetaList(
MetaMap(
name=MetaString("balance-scale"),
version=MetaString("5.x"),
variant=MetaString("solid"),
color=MetaString("orange"),
)
icons=MetaList(
MetaMap(
name=MetaString("file-text"),
color=MetaString("darksalmon"),
link=MetaString("http://www.google.fr"),
),
MetaString("comments"),
),
size=MetaString("36"),
position=MetaString("right"),
),
MetaMap(
classes=MetaList(MetaString("warning")),
icons=MetaString("comments"),
),
MetaMap(
classes=MetaList(MetaString("tip")), position=MetaString("left")
),
MetaMap(
classes=MetaList(MetaString("v5.0")),
icons=MetaList(
MetaMap(
name=MetaString("balance-scale"),
version=MetaString("5.x"),
variant=MetaString("solid"),
color=MetaString("orange"),
)
Arguments
---------
doc: pandoc document
"""
doc.headers = [0, 0, 0, 0, 0, 0]
doc.information = {}
doc.defined = {}
if "pandoc-numbering" in doc.metadata.content and isinstance(
doc.metadata.content["pandoc-numbering"], MetaMap
):
for category, definition in doc.metadata.content[
"pandoc-numbering"
].content.items():
if isinstance(definition, MetaMap):
add_definition(category, definition, doc)
doc.count = {}
doc.collections = {}