From 4ff74e33a48a8c4e101d2f5e259d7b911c03d9f9 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Wed, 6 Feb 2013 14:54:58 -0500 Subject: nl2br and attr_list compatability. Fixes #177. When using both extensions, breaks (`
`) must have a linebreak (`\n`) after them before attr_list is run. This patch reorders the treeprocessors so that happens ('attr_list' runs after 'prettify' not before). Also had to alter headerid extension so it runs after 'prettify' or it would run before 'attr_list' if loaded before 'attr_list' by user. --- tests/extensions/nl2br_w_attr_list.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/extensions/nl2br_w_attr_list.txt (limited to 'tests/extensions/nl2br_w_attr_list.txt') diff --git a/tests/extensions/nl2br_w_attr_list.txt b/tests/extensions/nl2br_w_attr_list.txt new file mode 100644 index 0000000..4b520b5 --- /dev/null +++ b/tests/extensions/nl2br_w_attr_list.txt @@ -0,0 +1,2 @@ +Foo +{: #bar} \ No newline at end of file -- cgit v1.2.3