diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2014-08-29 14:11:57 -0400 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2014-08-29 14:11:57 -0400 |
commit | 9d388a8ee26934c7b4685374ed7afbf5219d1995 (patch) | |
tree | 0868a64d464fdb16d708fe862c0608ad8e946200 /tests/extensions | |
parent | c27cbd154050c1181eac195a4b0bb19a6bbaf048 (diff) | |
download | markdown-9d388a8ee26934c7b4685374ed7afbf5219d1995.tar.gz markdown-9d388a8ee26934c7b4685374ed7afbf5219d1995.tar.bz2 markdown-9d388a8ee26934c7b4685374ed7afbf5219d1995.zip |
More updates to test configs.
The last few extensions were updated to accept dicts/**kwargs as configs and more
tests were updated. Also updated extra to actually accept configs.
Note that extra requires an extra level of dicts. First you need
to indicate tha the settings are for extra, then, which extension
extra wraps. I'm not crazy abount this, bit not sur ehow else to do it
without making all the configs a global attribute on the Markdown class
to that any extention can access any other extensions config settings.
I don't think we wnat to do that.
Also updated extra to use dot notation for the sub-extensions.
Diffstat (limited to 'tests/extensions')
-rw-r--r-- | tests/extensions/extra/extra_config.html | 9 | ||||
-rw-r--r-- | tests/extensions/extra/extra_config.txt | 5 | ||||
-rw-r--r-- | tests/extensions/extra/test.cfg | 8 |
3 files changed, 22 insertions, 0 deletions
diff --git a/tests/extensions/extra/extra_config.html b/tests/extensions/extra/extra_config.html new file mode 100644 index 0000000..0143145 --- /dev/null +++ b/tests/extensions/extra/extra_config.html @@ -0,0 +1,9 @@ +<div class="footnote"> +<hr /> +<ol> +<li id="fn:1"> +<p>A Footnote. <a class="footnote-backref" href="#fnref:1" rev="footnote" title="Jump back to footnote 1 in the text">↩</a></p> +</li> +</ol> +</div> +<p>Some text with a footnote<sup id="fnref:1"><a class="footnote-ref" href="#fn:1" rel="footnote">1</a></sup>.</p>
\ No newline at end of file diff --git a/tests/extensions/extra/extra_config.txt b/tests/extensions/extra/extra_config.txt new file mode 100644 index 0000000..2d29819 --- /dev/null +++ b/tests/extensions/extra/extra_config.txt @@ -0,0 +1,5 @@ +~~~placemarker~~~ + +Some text with a footnote[^1]. + +[^1]: A Footnote. diff --git a/tests/extensions/extra/test.cfg b/tests/extensions/extra/test.cfg index ed3e8df..d956e2a 100644 --- a/tests/extensions/extra/test.cfg +++ b/tests/extensions/extra/test.cfg @@ -26,3 +26,11 @@ tables_and_attr_list: extensions: - markdown.extensions.tables - markdown.extensions.attr_list + +extra_config: + extensions: + - markdown.extensions.extra + extension_configs: + markdown.extensions.extra: + markdown.extensions.footnotes: + PLACE_MARKER: ~~~placemarker~~~ |