diff --git a/lib/markdown2.py b/lib/markdown2.py index 9e81931b..12ad1cad 100755 --- a/lib/markdown2.py +++ b/lib/markdown2.py @@ -2073,7 +2073,7 @@ def _form_paragraphs(self, text): # Wrap

tags. graf = self._run_span_gamut(graf) - grafs.append("

" + graf.lstrip(" \t") + "

") + grafs.append("" % self._html_class_str_from_tag('p') + graf.lstrip(" \t") + "

") if cuddled_list: grafs.append(cuddled_list) diff --git a/test/tm-cases/html_classes.html b/test/tm-cases/html_classes.html index 153d7014..e5d4bc00 100644 --- a/test/tm-cases/html_classes.html +++ b/test/tm-cases/html_classes.html @@ -26,10 +26,10 @@ -

For example:

+

For example:

if cond:
     print doit()
 
-

the google logo

+

the google logo

diff --git a/test/tm-cases/html_classes.opts b/test/tm-cases/html_classes.opts index cfdc5bd4..828be323 100644 --- a/test/tm-cases/html_classes.opts +++ b/test/tm-cases/html_classes.opts @@ -6,7 +6,8 @@ "pre": "syntaxcolor", "code": "codesyntaxcolor", "img": "custom-image-class", - "table": "table table-striped" + "table": "table table-striped", + "p": "col-xs-3 custom-paragraph-class", } } } diff --git a/test/tm-cases/html_classes.tags b/test/tm-cases/html_classes.tags index 3c4c280b..426b3058 100644 --- a/test/tm-cases/html_classes.tags +++ b/test/tm-cases/html_classes.tags @@ -1 +1 @@ -extras html-classes knownfailure code.as.com +extras html-classes code.as.com