{"id":16666856,"url":"https://github.com/hason/pandoc-filters","last_synced_at":"2026-05-18T22:38:27.618Z","repository":{"id":139557316,"uuid":"165320481","full_name":"hason/pandoc-filters","owner":"hason","description":"A collection of lua filters for pandoc","archived":false,"fork":false,"pushed_at":"2019-04-15T11:24:44.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T16:38:09.013Z","etag":null,"topics":["context","lua","pandoc","pandoc-citeproc","pandoc-filter","tex"],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hason.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-11T22:34:31.000Z","updated_at":"2019-04-15T11:24:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e130306-f649-46f8-9769-efaf3cd88193","html_url":"https://github.com/hason/pandoc-filters","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hason%2Fpandoc-filters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hason%2Fpandoc-filters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hason%2Fpandoc-filters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hason%2Fpandoc-filters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hason","download_url":"https://codeload.github.com/hason/pandoc-filters/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243310914,"owners_count":20270867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["context","lua","pandoc","pandoc-citeproc","pandoc-filter","tex"],"created_at":"2024-10-12T11:12:13.416Z","updated_at":"2025-12-28T22:34:32.013Z","avatar_url":"https://github.com/hason.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pandoc Lua filters\n==================\n\nUniversal filters\n-----------------\n\n### [Filters](filters.lua)\n### [Meta to header](meta2headers.lua)\n### [Equal size of table columns](equalsizecolumns.lua)\n\nConTeXt filters\n---------------\n\n### [Bibliography](context/bibliography.lua)\nReplace `pandoc-citeproc` by native MkIV bibliography.\n\n### [Citations](context/citations.lua)\n\n### [Comments](context/comments.lua)\nConvert MS Word \"Track Changes \" comments to PDF comments.\n\n\u003ctable\u003e\u003ctr\u003e\u003ctd colspan=2\u003e\n\n```bash\npandoc --lua-filter context/comments.lua -t context\n```\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e\n\n```markdown\nLorem ipsum dolor sit amet, [Comment text]{.comment-start id=1 author=\"Martin Hasoň\"}consectetuer adipiscing elit[]{.comment-end id=1}.\n```\n\n\u003c/td\u003e\u003ctd\u003e\n\n```tex\nLorem ipsum dolor sit amet, \\comment[author={Martin Hasoň}]{Comment text}consectetuer adipiscing elit.\n```\n\n\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\n### [References](context/references.lua)\n\nCreates an invisible, referencable anchor texts from span with id.\n\n\u003ctable\u003e\u003ctr\u003e\u003ctd colspan=2\u003e\n\n```bash\npandoc --lua-filter context/references.lua -t context\n```\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e\n\n```markdown\nThe various [canal houses]{#houses} houses at the canal have nice interior.\n```\n\n\u003c/td\u003e\u003ctd\u003e\n\n```tex\nThe various \\textreference[houses]{canal houses} houses at the canal have nice interior.\n```\n\n\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\n\n### [Sections](context/sections.lua)\nUse new MkIV commands for sections.\n\n\u003ctable\u003e\u003ctr\u003e\u003ctd colspan=2\u003e\n\n```bash\npandoc --lua-filter context/sections.lua -t context\n```\n\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e\n\n```markdown\n# Section\nText\n\n## SubSection 1\n\n### SubSubSection {-}\nText\n\n## SubSection 2\nText\n```\n\n\u003c/td\u003e\u003ctd\u003e\n\n```tex\n\\startsection[title={Section}, reference={section}]\nText\n\\startsubsection[title={SubSection 1}, reference={subsection-1}]\n\\startsubsubsubject[title={SubSubSection}, reference={subsubsection}]\nText\n\\stopsubsubsubject\n\\stopsubsection\n\\startsubsection[title={SubSection 2}, reference={subsection-2}]\nText\n\\stopsubsection\n\\stopsection\n\n```\n\n\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\nUsage\n-----\n\n```lua\npackage.path = package.path .. \";pandoc/?.lua\"\n\nlocal filters = require(\"filters\")\n\nfilters.import(\"meta2header\")\nfilters.import(\"context/bibliography\")\nfilters.import(\"context/citations\")\nfilters.import(\"context/sections\")\nfilters.import(\"context/rawcontext\")\nfilters.import(\"context/references\")\n\nreturn filters.all()\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhason%2Fpandoc-filters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhason%2Fpandoc-filters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhason%2Fpandoc-filters/lists"}