This commit is contained in:
parent
3606dbef38
commit
d4ebbe41e8
|
@ -95,8 +95,8 @@ def de_gfm(source: str):
|
||||||
Calls de-gfm from the kramdown-rfc2629 gem.
|
Calls de-gfm from the kramdown-rfc2629 gem.
|
||||||
"""
|
"""
|
||||||
result = subprocess.run(
|
result = subprocess.run(
|
||||||
[settings.DE_GFM_BINARY,],
|
[settings.DE_GFM_BINARY, "-4"],
|
||||||
stdout=subprocess.PIPE, # post-Python 3.7, this can be replaced with capture_output=True
|
capture_output=True,
|
||||||
input=source,
|
input=source,
|
||||||
encoding='utf8',
|
encoding='utf8',
|
||||||
check=True,
|
check=True,
|
||||||
|
@ -123,4 +123,4 @@ class NoteNotFound(NoteError):
|
||||||
|
|
||||||
|
|
||||||
class InvalidNote(NoteError):
|
class InvalidNote(NoteError):
|
||||||
default_message = 'Note data invalid'
|
default_message = 'Note data invalid'
|
||||||
|
|
Loading…
Reference in a new issue