From 29189232532de1315521c546164c506875819d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89amonn=20McManus?= Date: Sun, 26 Apr 2026 14:37:51 -0700 Subject: [PATCH] Add a test that demonstrates incorrect formatting of a code block in a list. The problem arises when the code block is not the first thing in the list item. A subsequent change will fix this problem. PiperOrigin-RevId: 906022485 --- .../googlejavaformat/java/JavadocFormattingTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/src/test/java/com/google/googlejavaformat/java/JavadocFormattingTest.java b/core/src/test/java/com/google/googlejavaformat/java/JavadocFormattingTest.java index bf7ac1c2d..c2f9c5c49 100644 --- a/core/src/test/java/com/google/googlejavaformat/java/JavadocFormattingTest.java +++ b/core/src/test/java/com/google/googlejavaformat/java/JavadocFormattingTest.java @@ -1738,6 +1738,12 @@ public void markdownFencedCodeBlocks() { /// in a list /// ``` /// +/// - flibbertigibbet +/// +/// ``` +/// code block in a list after text +/// ``` +/// /// ~~~java /// code block /// with tildes and an info string ("java") @@ -1761,6 +1767,10 @@ class Test {} /// in a list /// ``` /// +/// - flibbertigibbet``` +/// code block in a list after text +/// ``` +/// /// ~~~java /// code block /// with tildes and an info string ("java")