From a4c80246770b87ca3d2cce5b5184901fd2495a7d Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Tue, 26 Aug 2008 13:01:17 -0400 Subject: Fixed ticket 12. Insert code placeholder into a wrapping ET element rather than parent_elem.text as text will alway be at beginning of doc. The wrapping element is a

tag as, later, when the rawhtml is inserted, markdown will first check for the placeholder inside a

tag, and if the placeholder is the *only* content of the

tag, replace the entire

tag - not just the placeholder. Perhaps a little hacky, but this is how markdown works internally anyway. --- tests/extensions-x-codehilite/code.html | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/extensions-x-codehilite/code.html b/tests/extensions-x-codehilite/code.html index 43b09ea..6a8ee91 100644 --- a/tests/extensions-x-codehilite/code.html +++ b/tests/extensions-x-codehilite/code.html @@ -1,7 +1,5 @@ - -

Some text -

-
1
+

Some text

+
1
 2
 3
 4
@@ -13,7 +11,6 @@
 def getCompiledRegExp (self) :
     return self.compiled_re
 
-

More text -

- +
+

More text

\ No newline at end of file -- cgit v1.2.3