You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be useful for file extension specific shortcuts like syntax for \\[...\\] in vim etc.
Edited the cli.py and it worked for me by adding:
@app.command("convert")defconvertMarkdown(
...,
file_extension: str=typer.Option(
".md",
"--extension",
help="Extension of the text files containing your markdown, e.g. '.md'",
),
,...
)
And the altering is_correct_filetype():
defis_correct_file_type(file, file_extension: str):
"""Check if a file is a markdown file."""# TODO(lukemurray): parameterize markdown extensions?iffile_extension!=".md":
returnfile.endswith(file_extension)
returnfile.endswith(".md")
I would go and make a pull request but am in the middle of exams :(
The text was updated successfully, but these errors were encountered:
seems completely reasonable. I am also a bit busy at the moment but am open to pull requests and will try to add this functionality once I have some spare time. Glad you are enjoying the project and good luck with exams!
Would be useful for file extension specific shortcuts like syntax for
\\[...\\]
in vim etc.Edited the
cli.py
and it worked for me by adding:And the altering
is_correct_filetype()
:I would go and make a pull request but am in the middle of exams :(
The text was updated successfully, but these errors were encountered: