From 82ad855f38b8fa8dc1cbfc14fa294dfd5f9f02ab Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Mon, 21 Jun 2021 08:49:00 -0700
Subject: Markdown writer: Fix regression in code blocks with attributes.

Code blocks with a single class but nonempty attributes
were having attributes drop as a result of #7242.

Closes #7397.
---
 test/command/7397.md | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 test/command/7397.md

(limited to 'test')

diff --git a/test/command/7397.md b/test/command/7397.md
new file mode 100644
index 000000000..ca8b6a482
--- /dev/null
+++ b/test/command/7397.md
@@ -0,0 +1,14 @@
+```
+% pandoc -t markdown
+~~~~ { .haskell startFrom="100"}
+qsort []     = []
+qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++
+               qsort (filter (>= x) xs)
+~~~~
+^D
+``` {.haskell startFrom="100"}
+qsort []     = []
+qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++
+               qsort (filter (>= x) xs)
+```
+```
-- 
cgit v1.2.3