From bdafbceb7596553b6b9cccf7e279dd08d10fb012 Mon Sep 17 00:00:00 2001
From: Taneli Hukkinen
Date: Thu, 15 Apr 2021 22:35:04 +0300
Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20Newline=20not=20rende?=
=?UTF-8?q?red=20in=20image=20alt=20attribute?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
markdown_it/renderer.py | 2 ++
tests/test_port/fixtures/commonmark_extras.md | 9 +++++++++
2 files changed, 11 insertions(+)
diff --git a/markdown_it/renderer.py b/markdown_it/renderer.py
index 2b7310ba..9ffa94b0 100644
--- a/markdown_it/renderer.py
+++ b/markdown_it/renderer.py
@@ -192,6 +192,8 @@ def renderInlineAsText(
elif token.type == "image":
assert token.children is not None
result += self.renderInlineAsText(token.children, options, env)
+ elif token.type == "softbreak":
+ result += "\n"
return result
diff --git a/tests/test_port/fixtures/commonmark_extras.md b/tests/test_port/fixtures/commonmark_extras.md
index 20523d15..6e8fe0c1 100644
--- a/tests/test_port/fixtures/commonmark_extras.md
+++ b/tests/test_port/fixtures/commonmark_extras.md
@@ -629,3 +629,12 @@ baz
.
+
+Newline in image description
+.
+There is a newline in this image ![here
+it is](https://github.com/executablebooks/)
+.
+There is a newline in this image
+.
From 84936c246ccebca665d04c182f8f97f1c94860bc Mon Sep 17 00:00:00 2001
From: Chris Sewell
Date: Sun, 25 Apr 2021 04:25:31 +0200
Subject: [PATCH 2/2] Update port.yaml
---
markdown_it/port.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/markdown_it/port.yaml b/markdown_it/port.yaml
index e457c619..76598829 100644
--- a/markdown_it/port.yaml
+++ b/markdown_it/port.yaml
@@ -1,7 +1,7 @@
- package: markdown-it/markdown-it
- version: 12.0.5
- commit: 3740146fc9c92ea15fdc6a358137ec7b68f05f4b
- date: Apr 14, 2021
+ version: 12.0.6
+ commit: df4607f1d4d4be7fdc32e71c04109aea8cc373fa
+ date: Apr 16, 2021
notes:
- Rename variables that use python built-in names, e.g.
- `max` -> `maximum`