Skip to content

Commit

Permalink
Fix for issue #12, crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Robinson committed Feb 24, 2014
1 parent d4e6ea7 commit 535c1f7
Show file tree
Hide file tree
Showing 9 changed files with 435 additions and 418 deletions.
2 changes: 1 addition & 1 deletion MarkdownDeepJS/MarkdownDeep.js
Original file line number Diff line number Diff line change
Expand Up @@ -2599,7 +2599,7 @@ var MarkdownDeep = new function () {

p.ResolveHeaderID = function (m) {
// Already resolved?
if (this.data != null)
if (typeof(this.data)=='string')
return this.data;

// Approach 1 - PHP Markdown Extra style header id
Expand Down
208 changes: 104 additions & 104 deletions MarkdownDeepJS/MarkdownDeep.min.js

Large diffs are not rendered by default.

208 changes: 104 additions & 104 deletions MarkdownDeepJS/MarkdownDeepLib.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion MarkdownDeepTests/JSTestResources/MarkdownDeep.js
Original file line number Diff line number Diff line change
Expand Up @@ -2599,7 +2599,7 @@ var MarkdownDeep = new function () {

p.ResolveHeaderID = function (m) {
// Already resolved?
if (this.data != null)
if (typeof(this.data)=='string')
return this.data;

// Approach 1 - PHP Markdown Extra style header id
Expand Down
208 changes: 104 additions & 104 deletions MarkdownDeepTests/JSTestResources/MarkdownDeep.min.js

Large diffs are not rendered by default.

208 changes: 104 additions & 104 deletions MarkdownDeepTests/JSTestResources/MarkdownDeepLib.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions MarkdownDeepTests/MarkdownDeepTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@
<Content Include="JSTestResources\MarkdownDeep.min.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<EmbeddedResource Include="testfiles\extramode\Issue12%28ExtraMode%29.txt" />
<EmbeddedResource Include="testfiles\extramode\Issue12%28ExtraMode%29.html" />
<EmbeddedResource Include="testfiles\blocktests\PartiallyIndentedLists.html" />
<EmbeddedResource Include="testfiles\blocktests\PartiallyIndentedLists.txt" />
<EmbeddedResource Include="testfiles\blocktests\HtmlAttributeWithoutValue.txt" />
Expand Down
8 changes: 8 additions & 0 deletions MarkdownDeepTests/testfiles/extramode/Issue12(ExtraMode).html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<dl>
<dt>Term</dt>
<dd>
<p>Definition</p>
</dd>
</dl>
<hr />
<h1>Heading</h1>
7 changes: 7 additions & 0 deletions MarkdownDeepTests/testfiles/extramode/Issue12(ExtraMode).txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Term

: Definition

***

# Heading

0 comments on commit 535c1f7

Please sign in to comment.