public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* docx -> gfm with custom styles
@ 2023-02-17  4:00 Ben Menashe
       [not found] ` <3909f520-e8db-4cf9-900d-6a5a858c1a18n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Ben Menashe @ 2023-02-17  4:00 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 902 bytes --]

Hi,
We have a need to convert docx to gfm.
Since docx has some user defined styles we use this "+styles" extension:

pandoc --to=gfm -f docx+styles --output=rtb.md --extract-media=. 
--wrap=none 'rtb.docx'


So now we have html div that wraps our content.  Let's say I want to 
transform this:
<div custom-style="Internal Heading">

Scope

</div>

Into:

## Scope

How can it be done? I tried to setup a Lua filter but not having success to 
have it output "##" along with the div content.


-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3909f520-e8db-4cf9-900d-6a5a858c1a18n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1408 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-02-20 21:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-17  4:00 docx -> gfm with custom styles Ben Menashe
     [not found] ` <3909f520-e8db-4cf9-900d-6a5a858c1a18n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-02-17  8:10   ` Bastien DUMONT
2023-02-17 15:00     ` Ben Menashe
     [not found]       ` <52ada5c3-e26e-4c8c-8b3f-b55bb8ce8e1en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-02-18  8:19         ` Bastien DUMONT
2023-02-18 19:26           ` Ben Menashe
     [not found]             ` <ef5a0088-1df4-4540-98d5-a0120df8f3cen-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-02-18 19:39               ` Bastien DUMONT
2023-02-18 19:46                 ` Ben Menashe
     [not found]                   ` <5aeae8ad-aec8-4f00-b51c-9ffddf8c112fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-02-18 19:59                     ` Bastien DUMONT
2023-02-18 20:15                       ` Ben Menashe
     [not found]                         ` <085f9581-c85a-4511-ad94-ec9bca0ab8c8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-02-20 21:24                           ` Ben Menashe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).