You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Native output with command pandoc --from=docx --to=native --output=test-landscape.native test-landscape.docx:
[ Header
2
( "test-document-for-landscape" , [] , [] )
[ Str "Test"
, Space
, Str "document"
, Space
, Str "for"
, Space
, Str "landscape"
]
, Header
3
( "page-not-in-landscape" , [] , [] )
[ Str "Page"
, Space
, Str "not"
, Space
, Str "in"
, Space
, Str "landscape"
]
, Para [ Str "Pellentesque" , Space , Str "\8230" ]
, Header
3
( "page-in-landscape" , [] , [] )
[ Str "Page" , Space , Str "in" , Space , Str "landscape" ]
, Para
[ Str "Lorem" , Space , Str "ipsum" , Space , Str "\8230" ]
, Header
3
( "page-not-in-landscape-1" , [] , [] )
[ Str "Page"
, Space
, Str "not"
, Space
, Str "in"
, Space
, Str "landscape"
]
, Para [ Str "Vivamus" , Space , Str "\8230" ]
]
Markdown output with command pandoc --from=docx --to=markdown --output=test-landscape.md test-landscape.docx:
## Test document for landscape### Page not in landscape
Pellentesque ...
### Page in landscape
Lorem ipsum ...
### Page not in landscape
Vivamus ...
Proposal
We could use fenced_divs to do this.
Native output will be:
[ Header
2
( "test-document-for-landscape" , [] , [] )
[ Str "Test"
, Space
, Str "document"
, Space
, Str "for"
, Space
, Str "landscape"
]
, Header
3
( "page-not-in-landscape" , [] , [] )
[ Str "Page"
, Space
, Str "not"
, Space
, Str "in"
, Space
, Str "landscape"
]
, Para [ Str "Pellentesque" , Space , Str "\8230" ]
, Div
( "" , [ "landscape" ] , [] )
[ Header
3
( "page-in-landscape" , [] , [] )
[ Str "Page" , Space , Str "in" , Space , Str "landscape" ]
, Para
[ Str "Lorem" , Space , Str "ipsum" , Space , Str "\8230" ]
]
, Header
3
( "page-not-in-landscape-1" , [] , [] )
[ Str "Page"
, Space
, Str "not"
, Space
, Str "in"
, Space
, Str "landscape"
]
, Para [ Str "Vivamus" , Space , Str "\8230" ]
]
Markdown output will be:
## Test document for landscape### Page not in landscape
Pellentesque ...
:::landscape### Page in landscape
Lorem ipsum ...
:::### Page not in landscape
Vivamus ...
As this may break things for some users, I suggest we add a new extension named landscape (for example)
which enables this change.
Describe alternatives you've considered.
I don't see another way to keep the information from docx to native.
With my current knowledge of lua filters, It's not possible to use them to keep information from Docx to native.
I'm open if you have any suggestion if it's not possible to do it like I suggest
The text was updated successfully, but these errors were encountered:
Hello,
Thanks for developing this tool.
Describe your proposed improvement and the problem it solves.
I would like to know if it's possible to support keeping landscape when converting docx to native.
Currently, when converting from Docx to native, there is no way to keep the information.
In my use case, the docx editor cannot have access to the markdown file. That's why I'm asking here.
Docx example : test-landscape.docx
Current output
Native output with command
pandoc --from=docx --to=native --output=test-landscape.native test-landscape.docx
:Markdown output with command
pandoc --from=docx --to=markdown --output=test-landscape.md test-landscape.docx
:Proposal
We could use
fenced_divs
to do this.Native output will be:
Markdown output will be:
Describe alternatives you've considered.
I don't see another way to keep the information from docx to native.
With my current knowledge of lua filters, It's not possible to use them to keep information from Docx to native.
I'm open if you have any suggestion if it's not possible to do it like I suggest
The text was updated successfully, but these errors were encountered: