aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/extensions/extra/extra_config.html9
-rw-r--r--tests/extensions/extra/extra_config.txt5
-rw-r--r--tests/extensions/extra/test.cfg8
-rw-r--r--tests/test_apis.py4
4 files changed, 24 insertions, 2 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.&#160;<a class="footnote-backref" href="#fnref:1" rev="footnote" title="Jump back to footnote 1 in the text">&#8617;</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~~~
diff --git a/tests/test_apis.py b/tests/test_apis.py
index b8597e8..010bf70 100644
--- a/tests/test_apis.py
+++ b/tests/test_apis.py
@@ -320,11 +320,11 @@ def _create_fake_extension(name, has_factory_func=True, is_wrong_type=False, use
# mod_name must be bytes in Python 2.x
mod_name = bytes(mod_name)
ext_mod = types.ModuleType(mod_name)
- def makeExtension(configs=None):
+ def makeExtension(*args, **kwargs):
if is_wrong_type:
return object
else:
- return markdown.extensions.Extension(configs=configs)
+ return markdown.extensions.Extension(*args, **kwargs)
if has_factory_func:
ext_mod.makeExtension = makeExtension
# Warning: this brute forces the extenson module onto the system. Either