Add formatting style Markdown
This commit is contained in:
parent
20873e6ef8
commit
e56f014136
4 changed files with 42 additions and 17 deletions
14
tests/test_formatting.py
Normal file
14
tests/test_formatting.py
Normal 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."
|
||||
Loading…
Add table
Add a link
Reference in a new issue