Skip to content

'-f markdown' vs. '-f gfm' #10064

Closed Answered by jsx97
jsx97 asked this question in Q&A
Discussion options

You must be logged in to vote

This question is not longer relevant to me, but here is what I looked for. Markup that doesn't use Pandoc's-Markdown-specific syntax (such as ::: for fenced divs), but nevertheless converted using -f markdown and using -f gfm differently:

this is a list:
- list item 1
- list item 2

pandoc -f markdown input.md -o output1.htm:

<p>this is a list: - list item 1 - list item 2</p>

pandoc -f gfm input.md -o output2.htm:

<p>this is a list:</p>
<ul>
<li>list item 1</li>
<li>list item 2</li>
</ul>

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jsx97
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants