Usage

Model Field

from django.db import models

from markymark.fields import MarkdownField


class Post(models.Model):
    content = MarkdownField()

Template filter

To display the rendered markdown in your template.

{% load markymark %}

{{ obj.content|markdown }}

Running tests

To run the tests, you need to install the test requirements with Poetry:

$ poetry install

Now you can run the tests from the root folder of the package:

$ make tests