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

View file

@ -8,7 +8,7 @@ import papis.strings
from papis.document import Document
from papis_extract import extractor, exporter
from papis_extract.annotation_data import AnnotatedDocument
from papis_extract.annotation_data import AnnotatedDocument, Markdown
logger = papis.logging.get_logger(__name__)
@ -84,6 +84,6 @@ def run(
doc_annotations: list[AnnotatedDocument] = extractor.start(documents)
if write:
exporter.to_notes(doc_annotations, edit=edit, git=git)
exporter.to_notes(doc_annotations, Markdown(), edit=edit, git=git)
else:
exporter.to_stdout(doc_annotations)
exporter.to_stdout(doc_annotations, Markdown())