aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/extensions/code_hilite.txt6
-rw-r--r--markdown/extensions/attr_list.py6
-rw-r--r--tests/extensions/attr_list.html3
-rw-r--r--tests/extensions/attr_list.txt2
4 files changed, 10 insertions, 7 deletions
diff --git a/docs/extensions/code_hilite.txt b/docs/extensions/code_hilite.txt
index d13b0e8..c17d688 100644
--- a/docs/extensions/code_hilite.txt
+++ b/docs/extensions/code_hilite.txt
@@ -43,9 +43,9 @@ set the value of the `-a` option to that class name. The CSS rules will be
written to the `styles.css` file which you can copy to your site and link from
your HTML templates.
-If you would like to use a differant theme, swap out `default` for the desired
+If you would like to use a different theme, swap out `default` for the desired
theme. For a list of themes installed on your system (additional themes can be
-isntalled via Pygments plugins), run the following command:
+installed via Pygments plugins), run the following command:
pygmetize -L style
@@ -59,7 +59,7 @@ isntalled via Pygments plugins), run the following command:
To ensure complete compatibility, you should generate the CSS rules from
your own installation of Pygments.
-See Pygment's excellent [documentation] for more details. If no language is
+See Pygments' excellent [documentation] for more details. If no language is
defined, Pygments will attempt to guess the language. When that fails, the code
block will not be highlighted.
diff --git a/markdown/extensions/attr_list.py b/markdown/extensions/attr_list.py
index ccc5b2f..c897a9c 100644
--- a/markdown/extensions/attr_list.py
+++ b/markdown/extensions/attr_list.py
@@ -53,9 +53,9 @@ def _handle_word(s, t):
return t, t
_scanner = Scanner([
- (r'[^ ]+=".*?"', _handle_double_quote),
- (r"[^ ]+='.*?'", _handle_single_quote),
- (r'[^ ]+=[^ =]+', _handle_key_value),
+ (r'[^ =]+=".*?"', _handle_double_quote),
+ (r"[^ =]+='.*?'", _handle_single_quote),
+ (r'[^ =]+=[^ =]+', _handle_key_value),
(r'[^ =]+', _handle_word),
(r' ', None)
])
diff --git a/tests/extensions/attr_list.html b/tests/extensions/attr_list.html
index 29e400d..8900de0 100644
--- a/tests/extensions/attr_list.html
+++ b/tests/extensions/attr_list.html
@@ -66,4 +66,5 @@ And a <strong class="nest">nested <a class="linky2" href="http://example.com" ti
<p><em>More weirdness</em></p>
<p>This should not cause a <em foo="a=b">crash</em></p>
<p>Attr_lists do not contain <em>newlines</em>{ foo=bar
-key=value }</p> \ No newline at end of file
+key=value }</p>
+<p>Extra <em foo="bar">equals signs</em></p>
diff --git a/tests/extensions/attr_list.txt b/tests/extensions/attr_list.txt
index 98f1cc7..c3d06df 100644
--- a/tests/extensions/attr_list.txt
+++ b/tests/extensions/attr_list.txt
@@ -92,3 +92,5 @@ This should not cause a *crash*{ foo=a=b }
Attr_lists do not contain *newlines*{ foo=bar
key=value }
+
+Extra *equals signs*{ foo=bar=baz }