Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,18 +151,22 @@ raw HTML in the given Markdown (for safety).
Here is how you might add styles of your own, and preserve the default style:

# settings.py
from markdown_deux.conf.settings import MARKDOWN_DEUX_DEFAULT_STYLE

MARKDOWN_DEUX_STYLES = {
"default": MARKDOWN_DEUX_DEFAULT_STYLE,
"default": {
"extras": {
"code-friendly": None,
},
"safe_mode": "escape",
},
"trusted": {
"extras": {
"code-friendly": None,
},
# Allow raw HTML (WARNING: don't use this for user-generated
# Markdown for your site!).
"safe_mode": False,
}
},
# Here is what http://code.activestate.com/recipes/ currently uses.
"recipe": {
"extras": {
Expand All @@ -174,6 +178,8 @@ Here is how you might add styles of your own, and preserve the default style:
(re.compile(r"recipe\s+#?(\d+)\b", re.I),
r"http://code.activestate.com/recipes/\1/"),
],
},
"recipe2": {
"extras": {
"code-friendly": None,
"pyshell": None,
Expand All @@ -188,7 +194,7 @@ Here is how you might add styles of your own, and preserve the default style:
"header-ids": None,
},
"safe_mode": "escape",
}
},
}


Expand Down