File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
commonmark/src/test/java/org/commonmark/test Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -279,6 +279,16 @@ public void imageAltTextWithEntities() {
279279 assertThat (defaultRenderer ().render (parse ("\n " ))).isEqualTo ("<p><img src=\" /url\" alt=\" foo \u00E4 \" /></p>\n " );
280280 }
281281
282+ @ Test
283+ public void imageAltTextWithInlines () {
284+ assertThat (defaultRenderer ().render (parse ("](/url)\n " ))).isEqualTo ("<p><img src=\" /url\" alt=\" foo bar link\" /></p>\n " );
285+ }
286+
287+ @ Test
288+ public void imageAltTextWithCode () {
289+ assertThat (defaultRenderer ().render (parse ("\n " ))).isEqualTo ("<p><img src=\" /url\" alt=\" foo bar\" /></p>\n " );
290+ }
291+
282292 @ Test
283293 public void canRenderContentsOfSingleParagraph () {
284294 Node paragraphs = parse ("Here I have a test [link](http://www.google.com)" );
You can’t perform that action at this time.
0 commit comments