Skip to content

Commit d4ebbe4

Browse files
authored
feat: improve notes imports by using de-gfm -4. Related to ietf-tools#3851. (ietf-tools#3930)
1 parent 3606dbe commit d4ebbe4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/utils/hedgedoc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ def de_gfm(source: str):
9595
Calls de-gfm from the kramdown-rfc2629 gem.
9696
"""
9797
result = subprocess.run(
98-
[settings.DE_GFM_BINARY,],
99-
stdout=subprocess.PIPE, # post-Python 3.7, this can be replaced with capture_output=True
98+
[settings.DE_GFM_BINARY, "-4"],
99+
capture_output=True,
100100
input=source,
101101
encoding='utf8',
102102
check=True,
@@ -123,4 +123,4 @@ class NoteNotFound(NoteError):
123123

124124

125125
class InvalidNote(NoteError):
126-
default_message = 'Note data invalid'
126+
default_message = 'Note data invalid'

0 commit comments

Comments
 (0)