From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29751 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Joost Kremers" Newsgroups: gmane.text.pandoc Subject: Custom styles in docx to markdown conversion. Date: Fri, 10 Dec 2021 13:07:10 +0100 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27507"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-4514-g2bdc19e04f-fm-20211209.002-g2bdc19e0 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS7B5O6XUOBBA4GZWGQMGQEY3FSOQY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Dec 10 13:07:34 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-il1-f192.google.com ([209.85.166.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mvegY-000714-2N for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 10 Dec 2021 13:07:34 +0100 Original-Received: by mail-il1-f192.google.com with SMTP id k9-20020a056e02156900b002a1acf9a52dsf10271591ilu.15 for ; Fri, 10 Dec 2021 04:07:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1639138053; cv=pass; d=google.com; s=arc-20160816; b=gcWADsrrr4xiGZkA8h8IRSr0FaudepPA9BBkoT1n3h9miNdFRkPLMTaeRlQZd4dXAq KhK+CK5UQZgoZvhEV0Y1jpv3lPZUpqa2YhdJXEsEXVY5E+e3cIKPB8lXX1s6kNu3Fe2W UzGMgUfzb9/JwoRyI1JOi5C15WTpvD6EheitqgFBwcme4LyqWeNCIcUPU+awflB09GYT rbt68SNgCSvxS8xMNQzEOzDIB+guWwxchc8NQWii2HtxV50J08m5KEz3C9IHqNWDUjN6 aeCM9BNv3YoYoVRFwUKWeRGT5YCICqq47w6geqZt3TdcrwBqcink+7RLXn9yBTDjGdCA VM+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:content-transfer-encoding:reply-to :subject:to:from:date:message-id:mime-version:user-agent:sender :dkim-signature; bh=P1g6dMxtcUoMs/Urxo4S9qBWf9oDVOqVqTlqG2yZqcY=; b=h2JZNBeBrQxO03BjImrv5nLfu1NM9tYyC1A3IaIe3OVk5e1B/Gl/o+EqUkZLgF7p6h E3swqpW+3p3x9ZlgB8C1SuDPFH/8Dovoz7UjPKlxcxjkyVaQ3qwbC0+1dZxSHvkAE+ks xZpqNVDqHw9REM285UQ494jA42IfTCInh5k6b82DdQKtd88zp3G/loemmm3drQP9lxxQ a/YdNEb/zXzjgHJip46dZQ4aOLA0ogbSmz5RCvwox5s5W324r+GUGvZJrHcGhDI9bElT Q0qAROFsXExD2FqklHA7fKZFGYo26+iB3VOJ5c6bTnV+2Az2Z0s7HYgIKwE1pNStUGoA HKkA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm1 header.b=hfFYY+UA; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=dCzqazWL; spf=pass (google.com: domain of joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.27 as permitted sender) smtp.mailfrom=joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:user-agent:mime-version:message-id:date:from:to:subject :x-original-sender:x-original-authentication-results:reply-to :content-transfer-encoding:precedence:mailing-list:list-id:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=P1g6dMxtcUoMs/Urxo4S9qBWf9oDVOqVqTlqG2yZqcY=; b=gfpLoxrj06MXlfHkQS1DCOc1snINSgwO6iAnWJzIqxnKx1aX5rgfGdSCUGfqvPp0v6 vOV8YxPs+2aE3tc4UEGVmVS2vjAFf1u0NYHNY5fq3PKkM7xHv2lfuSSIgkJiuLXmxiYD KwZra4zE+G/s+CMwSUHKkQilpaFCRC2agCyozuR5CjdRgl5d4TUkhmJMh+8e69nQngSe R+6UR/jIUb1XNXSydHH6AbOAgnnu8y98svUDdVcoAet2wPa01TaRJs7Bh1faU/36HMea uCyMjPygJv+Zntja7WmUnKppaTwK+bBqi1Ti5gxUlInAEsIqv/k5VIsslyJjxUeHT+vR Jq9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:user-agent:mime-version:message-id:date :from:to:subject:x-original-sender:x-original-authentication-results :reply-to:content-transfer-encoding:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=P1g6dMxtcUoMs/Urxo4S9qBWf9oDVOqVqTlqG2yZqcY=; b=WN1a2A1IxMRFHaFRIoB6qahcXCl5DL8J5CrkfvMSP0bFDG6NoYtwB48M1HYQ53ZWO+ 6zBfv7Hg51rOFk8/4IFYnt601F6JoSIqQuxNsQV/NGVYHiWkPWNK4vGeeo8e1509v2jf yTaXPk/vLjVtfhItmheCUg+SewDbN/rcAPjySi+pEGQ7kc0+KXEZzRcMll0WBgAwOkES bxOHf6juSMD2R7jIqc8b4kZSNqdwaZ1IFAjX0/zLwgGB/s0Vs1Z7DlKfTcTM4iOVLQAo a1HR3B2gKsPVmZoPy9p8OhjOJEOSv6e0BxlWVfdDW3QMhQctW7hKdQNrJE3j+5omSdFj yz9w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532YbXBUwa/VPQ86UiuRx+oY/yCkxeESGHkStj00hfgXKPibXDox 7xRkvBDA+q/LZabaVqUJwLo= X-Google-Smtp-Source: ABdhPJyTrYuhc627GNtRLmec7bFlkK1+A/1Wgn/RB6mIry+G+d+j4wPVRsnaHf9o0Xxm9zOhl9LLdA== X-Received: by 2002:a02:c78e:: with SMTP id n14mr17005216jao.40.1639138053004; Fri, 10 Dec 2021 04:07:33 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6638:411b:: with SMTP id ay27ls849915jab.10.gmail; Fri, 10 Dec 2021 04:07:31 -0800 (PST) X-Received: by 2002:a05:6638:1696:: with SMTP id f22mr17577525jat.113.1639138051613; Fri, 10 Dec 2021 04:07:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639138051; cv=none; d=google.com; s=arc-20160816; b=KPN/QNuqmsv3xb2sPZbH+0yKDOdVmnptF+Hgh7CYttvfJ8UheGZu5gB/6JZhlTUSJv MZBh0Pm3A5XK0Mn1lMqFljEbQNHELGQXX6bCjit/NIrXykDVcc58lIq0uYhBZZVeEQEV OKen6h0Uo+mTn0p5HqSJWaX1+BPoly3XTkcA/6gJi6ekAqnq9H/GHtYaSqIVAW1WIgbT Itl/u9/u9S0lSvCl10Ij5hXbvC1BWofxh8c4Fvq6DF/Tc1Ira5SmfjQ1D97GZ3OuiDNc 2nqfR3F3mLF9+BDygtThT7g1VQWlkp8PzK3OxOnN4tgHn1HbSuIeLi+6XdPyLRvf1svd 4WCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:to:from:date:message-id:mime-version:user-agent :dkim-signature:dkim-signature; bh=OalfRx1SvmholyyaC9wjkyGuBNa6quD7jQtzlI5+GdA=; b=s3tze1pfJ6PVP+z1G35gtkJrYBlFtaCVwYRcmCUDpDEVqIGIIA53l3hEObFd0M6Lwj PpMm7DVDU/fgtiSeF/EON9oeDCCDrSiu7uvu3+StkFaCNjq+7QYPx+oEmVxlY55rt0DQ bIkXf22ZEQtP7paGXkMUdvaw0J0OtCycBVZ2LZgm5BCyw/1OFfBOzU0Ui3iWCFwpAOWw UrlWOn/NL/g9jG9feXKdcKZMJx3XNoFFTr5BTnnk7o1MDh5HAQksRoWcqm9K/5ZY7VEY 1sPefJtWaqqcRxP3ggjPkkN0WHLK0DX/jvCn4h3SyN2VlwCikujmCPhgYnX98eiuH51Y 7bfQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm1 header.b=hfFYY+UA; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=dCzqazWL; spf=pass (google.com: domain of joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.27 as permitted sender) smtp.mailfrom=joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm Original-Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com. [66.111.4.27]) by gmr-mx.google.com with ESMTPS id d4si172620iob.2.2021.12.10.04.07.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 04:07:31 -0800 (PST) Received-SPF: pass (google.com: domain of joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.27 as permitted sender) client-ip=66.111.4.27; Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id F22B95C02E7 for ; Fri, 10 Dec 2021 07:07:30 -0500 (EST) Original-Received: from imap45 ([10.202.2.95]) by compute1.internal (MEProxy); Fri, 10 Dec 2021 07:07:30 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrkedvgdefjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtredtre ertdenucfhrhhomhepfdflohhoshhtucfmrhgvmhgvrhhsfdcuoehjohhoshhtkhhrvghm vghrshesfhgrshhtmhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhepfeeuhfegffeife fgleethefhleehkeefhffhgedvjeeikefgieetkeehhfeuueejnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhoohhsthhkrhgvmhgvrhhsse hfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id CF2E624A0074; Fri, 10 Dec 2021 07:07:30 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface X-Original-Sender: joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm1 header.b=hfFYY+UA; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=dCzqazWL; spf=pass (google.com: domain of joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.27 as permitted sender) smtp.mailfrom=joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm 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:29751 Archived-At: Hi list, I'm trying to convert some MS Word documents to markdown, which works surpr= isingly well, except for two issues I'm wondering about: 1. Section headings aren't converted to `## ...`. This, I assume, is due to= the fact that they have a custom style. 2. Most of the text is rendered as block quotes. This seems to be caused by= the fact that the body text has a custom style as well, since there are a = few paragraphs that are not rendered as block quotes and they don't have an= y style applied to them in the docx file. So, is there a way to make Pandoc understand these styles and convert them = correctly? TIA Joost --=20 Joost Kremers Life has its moments --=20 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 e= mail 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/a1fcb30f-4d0d-449b-b02e-b375f8e38abe%40www.fastmail.com.