How to use the panflute.MetaMap function in panflute

To help you get started, we’ve selected a few panflute examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github chdemko / pandoc-latex-tip / tests / test_tip.py View on Github external
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"),
                        )
github chdemko / pandoc-latex-tip / tests / test_tip.py View on Github external
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"),
                        )
github chdemko / pandoc-latex-tip / tests / test_tip.py View on Github external
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")
                ),
github chdemko / pandoc-latex-tip / tests / test_tip.py View on Github external
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"),
                ),
github chdemko / pandoc-latex-tip / tests / test_tip.py View on Github external
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"),
                        )
github chdemko / pandoc-latex-tip / tests / test_tip.py View on Github external
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"),
                        )
github chdemko / pandoc-numbering / pandoc_numbering.py View on Github external
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 = {}