Skip to content

Commit 09ca440

Browse files
committed
Sync with 12.0.6
1 parent 40755a7 commit 09ca440

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
12.0.0
1+
12.0.6
22
-------
33

4-
Synced with markdown-it 12.0.0, see the [CHANGELOG](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
4+
Synced with markdown-it 12.0.6, see the [CHANGELOG](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
55

66
11.0.0
77
-------

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Ruby/RubyMotion version of Markdown-it (CommonMark compliant and extendable)
77

88
This gem is a port of the [markdown-it Javascript package](https://github.com/markdown-it/markdown-it) by Vitaly Puzrin and Alex Kocharin.
99

10-
_Currently synced with markdown-it 12.0.5_
10+
_Currently synced with markdown-it 12.0.6_
1111

1212
---
1313

lib/motion-markdown-it/renderer.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ def renderInlineAsText(tokens, options, env)
287287
result += tokens[i].content
288288
elsif tokens[i].type == 'image'
289289
result += renderInlineAsText(tokens[i].children, options, env)
290+
elsif tokens[i].type == 'softbreak'
291+
result += "\n"
290292
end
291293
end
292294

lib/motion-markdown-it/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module MotionMarkdownIt
2-
VERSION = '12.0.5'
2+
VERSION = '12.0.6'
33
end

spec/motion-markdown-it/fixtures/markdown-it/commonmark_extras.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,3 +633,12 @@ Issue #772. Header rule should not interfere with html tags.
633633
==
634634
</pre>
635635
.
636+
637+
Newline in image description
638+
.
639+
There is a newline in this image ![here
640+
it is](https://github.com/executablebooks/)
641+
.
642+
<p>There is a newline in this image <img src="https://github.com/executablebooks/" alt="here
643+
it is"></p>
644+
.

0 commit comments

Comments
 (0)