From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32176 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Duncan Mackenzie Newsgroups: gmane.text.pandoc Subject: Trying to convert a custom-style in docx to code block output in markdown Date: Mon, 13 Feb 2023 18:12:54 -0800 (PST) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_14564_262424456.1676340774962" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22120"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC45TEGF5ENBBKG4VOPQMGQEGHXXMDQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Feb 14 03:13:00 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qv1-f55.google.com ([209.85.219.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pRkoV-0005a4-UL for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 14 Feb 2023 03:12:59 +0100 Original-Received: by mail-qv1-f55.google.com with SMTP id w2-20020a0cc702000000b0055c8ef137ddsf7867259qvi.0 for ; Mon, 13 Feb 2023 18:12:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=0I+QXynY3QwaMB70PikTHAfyp/cOMJlRurqPzXvrJvQ=; b=kOlN+PRRQHoxma1W2f2gVrYtpEyGaNUOq0gF1+cG1s9/1mGsPqkIF+aPwusre0YMcO Y+daO+UF+q5FtvKYGoLCWJJ+CqIdSHCmiz3OJux6bVIlIsPCHLMLzaYwR/yVqOeiO3Jv COOPyzrHo/CMSRrD/AwM3kksAY6yJezqUkYlB/NZ0Oi5tYouPihgjn19o6jbe4fbhaou PbZvxSnNvYUNARtOnxegZ2W5qrbw0WN/DBg5DG22cJxmvORFduFwLhRdtTQ7Cs2zRq08 oW+fHQmVvnxMVYiQeDKnvzZ0AwrL2q+/cTO5jVpfwrN+Hv2skxZiJMXz2WfuCJVGDOqJ LTNg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=0I+QXynY3QwaMB70PikTHAfyp/cOMJlRurqPzXvrJvQ=; b=TOSemYSzFfzC5FdTx4LtgxsrY+gQnta928a7gVNCaneP4U9vxB+Z/Foh5dzSk+51Et CKvs1OO8bPP2ibV5LUAiyJwDzzf5Elnq1+zjBzB8udYOp5jsicBYfviYMiPSu80Nc0ZY 9saQRDCrm1a4rFsCyVJ3uReo2ptXeAI9B0ZjZ34LNbr6paCRMcaQEP9uYkVbOI/+QU3e aQ7R/aC6OyY8xZHyLeW+mq2F4fdO5PPQ5kZ6PRn2ZqwGmJ7CK7LFNE/Igmv8t4V6H3jb Ug31H/kXJCTTeRsCbaKBC/IT6yRwtcQ3FZi9e1/jJ1GoXDcFgt8O9MAmZJiZVEEBqUBB 0F3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:message-id:to:from:date :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=0I+QXynY3QwaMB70PikTHAfyp/cOMJlRurqPzXvrJvQ=; b=vUWk5+DjBFp9iUXkvBhT7sJkWxpblSm0R+cZeDwezB8krQVjI72eZ2z2ScbZ2KCPP1 l8I6C+VI7WEgCjat6L587vTqH444Ti/mFsjAuZ0Ka4uJvnAKciB0GuAXtyqAr/57d5Sn 4dbcCbDVEHNMU2mSFhEvvI21HupyQl73+OazrpmGcE8p7JY0tf0/zFK3vd6QD12BCIqr NdKxmLRsQdX8jpZQmFVS+A5lAdtUsSlAXAOfhuolQXJJbFXodla1wHiwF8D61lfIr58z CelUfu3L9hKUsPUtJOXjNYsXDpyQPLvuOCgw8F83tOzciHpdEkac9JpXgknl8aeDPwOE hsgg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKWPgvv95zQQ1vNBltabe7Krp2bYmpv8OHXlJjNDaSJtnZYMexBg 9zU27+P1Tc5by5WtKAHTQ2U= X-Google-Smtp-Source: AK7set/hyCgaYmMFPsYXKxIyX+UyWbawZY0cMW3bk9glwzjq3eFd3TxRjdAjb6zfZISGO6qdLJNY0A== X-Received: by 2002:a05:622a:393:b0:3b8:6723:713e with SMTP id j19-20020a05622a039300b003b86723713emr70305qtx.236.1676340778713; Mon, 13 Feb 2023 18:12:58 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:620a:2b4a:b0:720:58b2:c9b8 with SMTP id dp10-20020a05620a2b4a00b0072058b2c9b8ls2227709qkb.5.-pod-prod-gmail; Mon, 13 Feb 2023 18:12:56 -0800 (PST) X-Received: by 2002:a37:d2c3:0:b0:719:2bb2:9dd9 with SMTP id f186-20020a37d2c3000000b007192bb29dd9mr27471qkj.213.1676340775778; Mon, 13 Feb 2023 18:12:55 -0800 (PST) X-Original-Sender: dm746613-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:32176 Archived-At: ------=_Part_14564_262424456.1676340774962 Content-Type: multipart/alternative; boundary="----=_Part_14565_1051804724.1676340774962" ------=_Part_14565_1051804724.1676340774962 Content-Type: text/plain; charset="UTF-8" Hey folks, I've been searching on lua, Blocks, and custom-style without finding anyone doing exactly what I'm trying to do, but my apologies if it is already in here somewhere. I'm trying to convert from docx to markdown, in such a way as to make writing technical content easier. One idea I had is that if in the docx you had ``` this is my text and some more and yet another line ``` and you created a custom style in the docx called 'code', selected that block of 5 lines and applied the 'code' style... that using a lua filter you could then write out a pandoc CodeBlock. My issue is that I'm able to see 5 Div blocks, each with the custom-style attribute of "code", but what I was hoping to see was a single Div with 5 Divs inside it, or something similar... because I want to (in the filter) create a new CodeBlock with the 3 inner lines as the 'text' content. Any advice would be appreciated, thanks -- 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/bfce99ea-7695-441e-8768-2e63727cba57n%40googlegroups.com. ------=_Part_14565_1051804724.1676340774962 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey folks, I've been searching on lua, Blocks, and custom-style without fin= ding anyone doing exactly what I'm trying to do, but my apologies if it is = already in here somewhere.

I'm trying to convert from = docx to markdown, in such a way as to make writing technical content easier= . One idea I had is that if in the docx you had=C2=A0

```
this is my text
and some more
and y= et another line
```

and you created a = custom style in the docx called 'code', selected that block of 5 lines and = applied the 'code' style... that using a lua filter you could then write ou= t a pandoc CodeBlock.

My issue is that I'm able = to see 5 Div blocks, each with the custom-style attribute of "code", but wh= at I was hoping to see was a single Div with 5 Divs inside it, or something= similar... because I want to (in the filter) create a new CodeBlock with t= he 3 inner lines as the 'text' content.=C2=A0

Any advice would b= e appreciated, thanks=C2=A0

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/bfce99ea-7695-441e-8768-2e63727cba57n%40googlegroups.= com.
------=_Part_14565_1051804724.1676340774962-- ------=_Part_14564_262424456.1676340774962--