Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Markdown template filter #13

Merged
merged 3 commits into from
May 26, 2016
Merged

Add Markdown template filter #13

merged 3 commits into from
May 26, 2016

Conversation

kennydude
Copy link
Contributor

@kennydude kennydude commented May 26, 2016

Adds template filter to turn markdown into latex

@register.filter(name='latex_markdown', is_safe=True)
def latex_markdown(value):
if not has_markdown:
raise RuntimeError('CommonMark needs to be installed')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is a runtime error the best choice here or should we use ImproperlyConfiguredError?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, can we get some docstrings here?

@scott-w scott-w merged commit ae6cc05 into mypebble:master May 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants