Skip to main content

A collection of template filters that implement common markup languages.

Project description

https://travis-ci.org/Alir3z4/django-markwhat.svg?branch=master

A collection of template filters that implement common markup languages.

provides template filters that implement the following markup languages:

In each case, the filter expects formatted markup as a string and returns a string representing the marked-up text. For example, the textile filter converts text that is marked-up in Textile format to HTML.

Supported Python versions

django-crequest currently can be run on multiple python versions:

  • Python 3 (3.9, 3.10)

  • PyPy

Installation

django-markwhat-next is available on pypi:

https://pypi.org/project/django-markwhat/

Install it by pip:

pip install django-markwhat-next

Another way is by cloning django-markwhat’s git repo ::

git clone git://github.com/CryoTechnic/django-markwhat-next.git

Then install it by running:

$ python setup.py install

Configuration

To activate these filters, add 'django_markwhat_next' to your INSTALLED_APPS setting. Once you’ve done that, use {% load markup %} in a template, and you’ll have access to these filters.

reStructuredText

When using the reStructuredText markup filter you can define a RESTRUCTUREDTEXT_FILTER_SETTINGS in your django settings to override the default writer settings. See the reStructuredText writer settings for details on what these settings are.

Markdown

The Python Markdown library supports options named “safe_mode” and “enable_attributes”. Both relate to the security of the output. To enable both options in tandem, the markdown filter supports the “safe” argument.

{{ markdown_content_var|markdown:"safe" }}

Tests

django-markwhat is tested on both python2 and python3, to run the tests:

$ python run_tests.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-markwhat-next-1.7.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

django_markwhat_next-1.7.0-py2.py3-none-any.whl (8.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-markwhat-next-1.7.0.tar.gz.

File metadata

  • Download URL: django-markwhat-next-1.7.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for django-markwhat-next-1.7.0.tar.gz
Algorithm Hash digest
SHA256 0ab51dc2a98fd9108ca3f50b5feb8c75a882937b7e9556984e69c5defa640358
MD5 17b60e7fe83bf0bf27696f438dfb21d8
BLAKE2b-256 4f79719f1c52b7d52f81df481302fd8e2e171d0e074e7cd2f487b9b3d37c66c3

See more details on using hashes here.

File details

Details for the file django_markwhat_next-1.7.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_markwhat_next-1.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3be44ecc6da16fd7623b7be15b21d8b909922c237a2d69b1e3d5f8c1ed57d4d5
MD5 34888c3f23e2bc94c847faa3a3932448
BLAKE2b-256 e38386ca0590037c4015a873ac29775e929e5cc40d28a0e48fbad9ac063453d8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page