Verified Commit 5679767b authored by Jakob Moser's avatar Jakob Moser
Browse files

Refactor TOC code, move getting filter

parent 819c3742
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@

## Pandoc filter to set the title of a document

- `src/coliverter/resources/pandoc-heading-to-title.lua`
- `src/coliverter/resources/pandoc/heading-to-title.lua`
  - Answer to: Set html title from the first header with pandoc
  - Author: johndoe (https://stackoverflow.com/users/2520247/johndoe)
  - URL: https://stackoverflow.com/a/76048743
+0 −0

Empty file added.

+7 −0
Original line number Diff line number Diff line
from importlib import resources
from pathlib import Path


def get_filter(name: str) -> Path:
    with resources.path("coliverter.resources.pandoc", f"{name}.lua") as path:
        return path
Loading