fobi.reusable.markdown_widget package

Submodules

fobi.reusable.markdown_widget.helpers module

fobi.reusable.markdown_widget.helpers.convert_to_markdown(content)[source]

Trans-compiles Markdown text to HTML.

Parameters

content (str) – Markdown text.

Returns

HTML encoded text.

Return type

str

fobi.reusable.markdown_widget.widgets module

class fobi.reusable.markdown_widget.widgets.MarkdownWidget(attrs=None)[source]

Bases: django.forms.widgets.Textarea

Markdown widget based on remarkable.

class Media[source]

Bases: object

Media options.

js = ['markdown_widget/remarkable.min.js', 'content_markdown/fobi.plugin.content_markdown.js']
property media
render(name, value, attrs=None, **kwargs)[source]

Render the widget as an HTML string.

Module contents