PaperFlow markdown post-processing for citations, figures, tables, and frontmatter.
Project description
paperflow-postprocess
paperflow-postprocess packages the PaperFlow markdown post-processing logic as a reusable Python module.
It converts raw academic markdown into an Obsidian-friendly format by:
- normalizing LaTeX delimiters
- converting numbered citations into footnotes
- linkifying figure and table references
- injecting YAML frontmatter
Install
pip install paperflow-postprocess
Usage
from paperflow_postprocess import postprocess
raw_markdown = """
Text with citation [1].
## References
[1] Example Author. Example Paper.
"""
markdown = postprocess(
raw_markdown=raw_markdown,
images={},
metadata={
"title": "Example Paper",
"authors": ["Example Author"],
"source": "https://example.com/paper",
"date": "2026-03-11",
},
)
print(markdown)
API
postprocess(raw_markdown, images, metadata)fix_latex_delimiters(md)clean_headers_footers(md)convert_to_footnotes(md)linkify_figures(md)linkify_tables(md)inject_frontmatter(md, metadata)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file paperflow_postprocess-0.1.0.tar.gz.
File metadata
- Download URL: paperflow_postprocess-0.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edc02fcec7456f04a064ec8da66170496a14a7035c369bd7baca51a0c29cab93
|
|
| MD5 |
f36ea844fece88f70c96022760cf8b3e
|
|
| BLAKE2b-256 |
ab59880f9294f7e76d071dba2ef436a95e6eb7b883963c68dd0489f3a8b17719
|
File details
Details for the file paperflow_postprocess-0.1.0-py3-none-any.whl.
File metadata
- Download URL: paperflow_postprocess-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18e98a010b1ebc69dea23689b1a7898f6cd071f7f770252ada4ae1aaff5b9519
|
|
| MD5 |
2ba9f66dceeb1fdd7aa1cbf612469776
|
|
| BLAKE2b-256 |
c09279cdf4c7231ac1247e687bad2a4a965e68840ce98c44b634872cd98b3b25
|