diff options
author | Mike Dirolf <mike@dirolf.com> | 2012-01-17 16:52:39 -0500 |
---|---|---|
committer | Mike Dirolf <mike@dirolf.com> | 2012-01-17 16:52:39 -0500 |
commit | 69b365d07c7fabb206d9094398de2162cbcf6ba3 (patch) | |
tree | e1d25d0b5f1ddbd5953224743f4dc654fbf69417 /tests/extensions/github_flavored.html | |
parent | a9179833ae458861d8a4d72336a1df4ee4f6d070 (diff) | |
download | markdown-69b365d07c7fabb206d9094398de2162cbcf6ba3.tar.gz markdown-69b365d07c7fabb206d9094398de2162cbcf6ba3.tar.bz2 markdown-69b365d07c7fabb206d9094398de2162cbcf6ba3.zip |
Support github-flavored markdown by making the '.' optional before language type.
Diffstat (limited to 'tests/extensions/github_flavored.html')
-rw-r--r-- | tests/extensions/github_flavored.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/extensions/github_flavored.html b/tests/extensions/github_flavored.html new file mode 100644 index 0000000..60e16b1 --- /dev/null +++ b/tests/extensions/github_flavored.html @@ -0,0 +1,32 @@ +<p>index 0000000..6e956a9</p> +<div class="codehilite"><pre><span class="gd">--- /dev/null</span> +<span class="gi">+++ b/test/data/stripped_text/mike-30-lili</span> +<span class="gu">@@ -0,0 +1,27 @@</span> +<span class="gi">+Summary:</span> +<span class="gi">+ drift_mod.py | 1 +</span> +<span class="gi">+ 1 files changed, 1 insertions(+), 0 deletions(-)</span> +<span class="gi">+</span> +<span class="gi">+commit da4bfb04debdd994683740878d09988b2641513d</span> +<span class="gi">+Author: Mike Dirolf <mike@dirolf.com></span> +<span class="gi">+Date: Tue Jan 17 13:42:28 2012 -0500</span> +<span class="gi">+</span> +<span class="gi">+```</span> +<span class="gi">+minor: just wanted to push something.</span> +<span class="gi">+```</span> +<span class="gi">+</span> +<span class="gi">+diff --git a/drift_mod.py b/drift_mod.py</span> +<span class="gi">+index 34dfba6..8a88a69 100644</span> +<span class="gi">+</span> +<span class="gi">+```</span> +<span class="gi">+--- a/drift_mod.py</span> +<span class="gi">++++ b/drift_mod.py</span> +<span class="gi">+@@ -281,6 +281,7 @@ CONTEXT_DIFF_LINE_PATTERN = re.compile(r'^('</span> +<span class="gi">+ '|\+ .*'</span> +<span class="gi">+ '|- .*'</span> +<span class="gi">+ ')$')</span> +<span class="gi">++</span> +<span class="gi">+ def wrap_context_diffs(message_text):</span> +<span class="gi">+ return _wrap_diff(CONTEXT_DIFF_HEADER_PATTERN,</span> +<span class="gi">+ CONTEXT_DIFF_LINE_PATTERN,</span> +<span class="gi">+```</span> +</pre></div>
\ No newline at end of file |