Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headers 4 levels deep render differently #6145

Closed
chrissound opened this issue Feb 17, 2020 · 4 comments
Closed

Headers 4 levels deep render differently #6145

chrissound opened this issue Feb 17, 2020 · 4 comments

Comments

@chrissound
Copy link

chrissound commented Feb 17, 2020

Input:

* test
** test 2
*** test 3
**** test 4
***** test 5
****** test 6
bla bla

Command: pandoc -s x.org -o x.md

Output:

test
====

test 2
------

### test 3

1.  test 4

    1.  test 5

        1.  test 6

            bla bla

Also mentioned here: https://stackoverflow.com/questions/21198025/pandoc-generation-of-pdf-from-markdown-4th-header-is-rendered-differently
#1221
#754
#1658?

@mb21
Copy link
Collaborator

mb21 commented Feb 17, 2020

What pandoc version are you on?

Try also -t native... you sure this is valid orgmode heading syntax for h4 and deeper?

@chrissound
Copy link
Author

Will read up on -t native however it seems to generate some strange output?

pandoc -t native -s x.org -o x.md generates:

Pandoc (Meta {unMeta = fromList []})
[Header 1 ("test",[],[]) [Str "test"]
,Header 2 ("test-2",[],[]) [Str "test",Space,Str "2"]
,Header 3 ("test-3",[],[]) [Str "test",Space,Str "3"]
,OrderedList (1,DefaultStyle,DefaultDelim)
 [[Para [Str "test",Space,Str "4"]
  ,OrderedList (1,DefaultStyle,DefaultDelim)
   [[Para [Str "test",Space,Str "5"]
    ,OrderedList (1,DefaultStyle,DefaultDelim)
     [[Para [Str "test",Space,Str "6"]
      ,Para [Str "bla",Space,Str "bla"]]]]]]]]

But yes this should be valid org mode syntax.

@tarleb
Copy link
Collaborator

tarleb commented Feb 17, 2020

See #3214 and #5169.

Adding #+OPTIONS: H:9 to the top of your org file will fix this.

@chrissound
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants