From d6b7b1dc772249e9a1b56bcdd4ae816cc54edb51 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Sat, 18 Jul 2020 15:17:06 -0700
Subject: Remove use of cmark-gfm for commonmark/gfm rendering.

Instead rely on the markdown writer with appropriate extensions.

Export writeCommonMark variant from Markdown writer.
This changes a few small things in rendering markdown,
e.g. w/r/t requiring backslashes before spaces inside
super/subscripts.
---
 test/command/3734.md | 2 +-
 test/command/4038.md | 2 +-
 test/command/4528.md | 2 +-
 test/command/gfm.md  | 8 ++++----
 4 files changed, 7 insertions(+), 7 deletions(-)

(limited to 'test')

diff --git a/test/command/3734.md b/test/command/3734.md
index 7549fb053..f65b1cfd3 100644
--- a/test/command/3734.md
+++ b/test/command/3734.md
@@ -27,6 +27,6 @@
 | aaaaaaaaaaaa |       | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
 ^D
 | aaaaaaaaaaaa | bbbbb | ccccccccccc                                                              |
-| ------------ | ----- | ------------------------------------------------------------------------ |
+|--------------|-------|--------------------------------------------------------------------------|
 | aaaaaaaaaaaa |       | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
 ```
diff --git a/test/command/4038.md b/test/command/4038.md
index 121760540..b5e6323df 100644
--- a/test/command/4038.md
+++ b/test/command/4038.md
@@ -1,5 +1,5 @@
 ```
-% pandoc -f gfm -t gfm
+% pandoc -f gfm -t gfm --atx-headers
 # ~~Header~~
 ^D
 # ~~Header~~
diff --git a/test/command/4528.md b/test/command/4528.md
index a60f6decf..a34af33c5 100644
--- a/test/command/4528.md
+++ b/test/command/4528.md
@@ -124,7 +124,7 @@ This has ^superscript^ in it and ^2^ again.
 % pandoc --wrap=none -f html -t commonmark-raw_html
 This has <sub>subscript</sub> in it and <sub>2 3</sub> again. With emphasis: <sub><em>2</em> 3</sub>. With letters: <sub>foo</sub>. With a span: <sub><span class=foo>2</span></sub>.
 ^D
-This has \_(subscript) in it and ₂ ₃ again. With emphasis: \_(*2* 3). With letters: \_(foo). With a span: ₂.
+This has _(subscript) in it and ₂ ₃ again. With emphasis: _(*2* 3). With letters: _(foo). With a span: ₂.
 ```
 
 ```
diff --git a/test/command/gfm.md b/test/command/gfm.md
index ef200fc48..f1bce1b89 100644
--- a/test/command/gfm.md
+++ b/test/command/gfm.md
@@ -69,7 +69,7 @@ My:thumbsup:emoji:heart:
 % pandoc -f gfm+smart -t native
 "hi"
 ^D
-[Para [Str "\8220hi\8221"]]
+[Para [Quoted DoubleQuote [Str "hi"]]]
 ```
 
 ```
@@ -100,7 +100,7 @@ My:thumbsup:emoji:heart:
  [])]
 ^D
 | Fruit  | Price |
-| ------ | ----: |
+|--------|------:|
 | apple  |  0.13 |
 | orange |  1.12 |
 
@@ -161,6 +161,6 @@ hi
 - [ ] foo
 - [x] bar
 ^D
-  - [ ] foo
-  - [x] bar
+-   [ ] foo
+-   [x] bar
 ```
-- 
cgit v1.2.3