pandoc-xnos provides library code for the pandoc-fignos/eqnos/tablenos filters.
I am pleased to receive bug reports and feature requests on the project's Issues tracker.
Below is a short summary of what is available. More details are given in the function docstrings.
STRTYPES
- a list of string types for this python versionSTDIN
/STDOUT
/STDERR
- streams for use with pandoc
init()
- Determines and returns the pandoc versionget_meta()
- Retrieves variables from a document's metadata
quotify()
- Changes Quoted elements to quoted stringsdollarfy()
- Changes Math elements to dollared stringsextract_attrs()
- Extracts attribute strings
join_strings()
- Joins adjacent strings in a pandoc documentrepair_refs()
- Repairs broken Cite elements in a documentprocess_refs_factory()
- Makes functions that process referencesreplace_refs_factory()
- Makes functions that replace refs with format-specific contentattach_attrs_factory()
- Makes functions that attach attributes to elementsdetach_attrs_factory()
- Makes functions that detach attributes from elementsinsert_secnos_factory()
- Makes functions that insert section numbers into attributesdelete_secnos_factory()
- Makes functions that delete section numbers from attributesinsert_rawblocks_factory()
- Makes function to insert non-duplicate RawBlock elements.