
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
django-markupmirror
Advanced tools
Django field and widget for editing markup content (PlainText, HTML,Markdown, reStructuredText, Textile) using the CodeMirror editor withlive preview.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
django-markupmirror is a custom field and widget for editing markup text
in Django. It utilizes the CodeMirror
_ JS editor for a richer editing
experience.
It uses parts of James Turk's
_ django-markupfield
_ and adds a nicer widget
with live-preview and an extension content-type for FeinCMS
_.
Documentation on Read the Docs: http://django-markupmirror.readthedocs.org/
Code and issues on bitbucket: https://bitbucket.org/fabianbuechler/django-markupmirror
Releases on PyPi: http://pypi.python.org/pypi/django-markupmirror
.. _CodeMirror: http://codemirror.net/ .. _James Turk's: https://github.com/jamesturk .. _django-markupfield: https://github.com/jamesturk/django-markupfield .. _FeinCMS: http://www.feinheit.ch/media/labs/feincms/
To install django-markupmirror, use pip
_ and add 'markupmirror'
to
the INSTALLED_APPS
in your Django
_ project.
In your settings.py
specify at least MARKUPMIRROR_DEFAULT_MARKUP_TYPE
which is 'plaintext'
by default.
For the markup HTML-preview, you'll need to add markupmirror's URLs in your
URLconf. In your urls.py
add::
import markupmirror.urls
urlpatterns = patterns('', (r'^markupmirror/', include(markupmirror.urls.preview)), )
Add one or more markupmirror.fields.MarkupMirrorField
s to your models
and define markup_type
or default_markup_type
::
class ModelWithMarkup(models.Model): content = MarkupMirrorField( verbose_name="content", markup_type='markdown')
If you want the FeinCMS
_ content-type model MarkupMirrorContent
, you'll
also need to add 'markupmirror.feincms'
to your INSTALLED_APPS
.
Also, you need to register the content-type model with FeinCMS' Page module::
from feincms.module.page.models import Page from markupmirror.feincms.models import MarkupMirrorContent
Page.create_content_type(MarkupMirrorContent)
By default, django-markupmirror comes with markup converters for plain text
(converts links and linebreaks) and HTML (does nothing). Converters for
Markdown
, reStructuredText
and Textile
_ are also available, but require
3rd-party libraries to be installed. However, you can register your own markup
converters.
.. _pip: http://www.pip-installer.org/ .. _easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall .. _Django: http://www.djangoproject.com/ .. _FeinCMS: http://www.feinheit.ch/media/labs/feincms/ .. _Markdown: http://daringfireball.net/projects/markdown/ .. _reStructuredText: http://docutils.sourceforge.net/rst.html .. _Textile: http://www.textism.com/tools/textile/
Added jQuery plugin for CodeMirror initialization and preview updating. Thanks to Gustav Pursche!
Improved usage and installation docs.
MarkupMirrorField
field,
MarkupMirrorTextarea
and AdminMarkupMirrorTextareaWidget
widgets and
providing FeinCMS integration with MarkupMirrorContent
Page content-type.
Supported markup types are plain text, HTML, Mardown, reStructuredText and
Textile.FAQs
Django field and widget for editing markup content (PlainText, HTML,Markdown, reStructuredText, Textile) using the CodeMirror editor withlive preview.
We found that django-markupmirror demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.