Add formatting style Markdown

This commit is contained in:
Marty Oehme 2023-08-31 21:32:24 +02:00
parent 20873e6ef8
commit e56f014136
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
4 changed files with 42 additions and 17 deletions

14
tests/test_formatting.py Normal file
View file

@ -0,0 +1,14 @@
import chevron
from papis_extract.annotation_data import Markdown
def test_markdown_default():
fmt = Markdown()
assert chevron.render(fmt.string, {
"file": "somefile/somewhere.pdf",
"quote": "I am quote",
"note": "and including note.",
"page": 46,
"tag": "important",
"type": "highlight",
}) == "#important\n> I am quote [p. 46]\n NOTE: and including note."