From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/27691 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Convert Numbered Lists to Headings Date: Sun, 07 Feb 2021 08:51:57 -0800 Message-ID: References: <2bac3c98-9224-4f1e-bf70-a2e6a8b25a38n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26744"; mail-complaints-to="usenet@ciao.gmane.io" To: Felix Wong , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBO5VQCAQMGQEXVYY6HY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Feb 07 17:52:13 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ua1-f55.google.com ([209.85.222.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l8nID-0006pf-Nw for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 07 Feb 2021 17:52:13 +0100 Original-Received: by mail-ua1-f55.google.com with SMTP id 9sf3228776uas.17 for ; Sun, 07 Feb 2021 08:52:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1612716732; cv=pass; d=google.com; s=arc-20160816; b=QoG9rt/WljQO0Hf44S7AbiuOZMQ3ZladfiDnYrhAFr+NKr/+W7QPi6+DYTkf0B9rFG p74px0qggtCMC8gA5gIwseHlc9FCFOwEfpaqPI799swGLdsRWoWb8g3YRlVKP72lGuK2 5GpEoa0ijoCB/8F/ICow+iFDsz9eFeexXnT0OtB3Xu/Yw+eQbICZvS/9JCzNDYa0Tggn XiS/JPDTYjqY3U/fiEMWrlqqnzZfRu2rOvEFSMM2yMnagSrgy2L0WoQWn5AJX5SDnFax NaqCpiWq3qsUe9BRBVZH1ELIzEGYb6W62o932GIO58teU6HIK+D1qarNHrG+4HrKEmOz S44g== 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:reply-to:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=HGk4p5zw4In4qdBu9a/d1DCOurOyMHHvPtMiKgqb3I0=; b=GQ+1hNtnRsNzDXeh0dYHBTMtX5JzE9ejc119jC8oDakzXbJ8am3a3vIWsqOQZEplD3 R37dR6btKHHvi7O5tTGy3D4Svaf71wcr+KuqqWvDIvZobgWL0EBdl/5XAQwp+JOwvMZL 7BvsTM4aMoD62aFY1AXlpp9J8+tbPWbl3LA/yuFYfxQAXe802oTCqHh4ZnE5PNnIC3vF Y9U1bY2atNjL/sg4Jysao3CIf9XTps3uWQa92xlv6q1Lw2iNk9RicjWYbUD1ZmkGAexO sd3UNB6m6mKqHno4PZjjpLuDNlUVwc1TyLi2z82U75OGsdIxiHM1/1FeUb83tjz3I8FC 1EDg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=bXW3xUU3; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=HGk4p5zw4In4qdBu9a/d1DCOurOyMHHvPtMiKgqb3I0=; b=pfYyTYstKPLUURxSd3sgW67Ot1LNK57xFEIpBMCGB0yKvHetUBxN0JABfzOufrOuhV soR4Yk474umFD6YYXzzRIq1PY7gYScA+ncWWfJj37n60qyE3HpKsZWEDcl2RSNd3vinm vYo5u+bGTTwXwlP+X7PfeDYNAARy08YreO83aO/WYqjDSGGy2HnpwLmD2rFP3hrWEYtq 7zOw5mb9ynP84U8KkZr9I6MyDLU7ibq9PvlVHjpg1iQkjDBzQgi2QXqu/Up0WuEAy4Ko d2ueqEr7CmjmKgII+UhbM9Z5CQxKlIRBO6tWlLNtz8WdXI/ls+YxBhqvOotx4ycW2gay kpuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=HGk4p5zw4In4qdBu9a/d1DCOurOyMHHvPtMiKgqb3I0=; b=DVmlEVGsJzDNy5h/23r1aJ8TE1OamKvu9GZO0kkxSYcrp4gWRPXhvSszKFzzBfUdSe 9VSEt6EQqxtM2HcAim/LmcMUoe6zlTn/YdPmmtYGHquNuSVoGjp8LlfZnBolG9ZTXPYH MU9nuAMbp/0La0QxR2Mt+fpQ1gfuiG12yaQ5NfEjmRoZA2oB8XUOreypeooJ2+uBgwsl 0H0uGR2GPf9Ba7MexLzCI6mKs2s4ChiGPH3bYmD7ZigB6k0h/Xua32PAr6BgTtXvu/fJ lBHJi2TDDyvjmyrxCtcabSROoUt/6yqIL8h2Qlz6SMAGJYboButc+bD0ScIb7gLeaTt1 J3GQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532yLELDw+Z+dB6qqPbk04jc53dezUv8XFZhaCPaJJI6dCKfLVxg GFzBz6BOrwajupJdB/pUX/w= X-Google-Smtp-Source: ABdhPJw+4XG2gXf11j1E94aU9ESQ6veaUQ4qvftTvLSVO7BvaRmOZYBwYzZjC3/8qiPDtRpbOOTCBw== X-Received: by 2002:ab0:764f:: with SMTP id s15mr8013720uaq.63.1612716732888; Sun, 07 Feb 2021 08:52:12 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a67:fa1a:: with SMTP id i26ls1758481vsq.10.gmail; Sun, 07 Feb 2021 08:52:11 -0800 (PST) X-Received: by 2002:a67:8945:: with SMTP id l66mr8304672vsd.48.1612716731049; Sun, 07 Feb 2021 08:52:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612716731; cv=none; d=google.com; s=arc-20160816; b=PIM1zo64/sKLd0Aw028r3LlgUW0eHVo7dde065dYg7ENFKSel//mky7Nycc9Ar95g0 DItKCfUVD86ldGMv9pTnx2+GMH/nJj6a7Mokbi7h+AxmByWgFngJrPBEt/nyxYkldFpz pEt+aWIIJfQRln756Nnfw+RpSFCiU+55hj8C2Ycu1hb3oT9GqnmVbC7o095DBjDeAXcs Y9ocNNQbfzC+PmN2hWBe/6mZj9VxOc/5b2LoFs2Ql2nxotoxFFXgVuijoed89U7r0UpE /d8YTe64El3OB/QMdwRhGT4tIXlHCEMvX6rFbaqruXpu4ckIe3q1uE/ZwSQDqFY750HO wN4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=M1SQQmg27/XAaZKGUsmYQyxqFq+igbYuQl26WMWCR+U=; b=m8/DoKZ+kt/RJA9dnzjBt9L2biHGqBW7Fm7kMUjz3As3mgkkTQIZUYGaNVo6o7c3K4 24ih7xTGiq7xE7vzEN704NAeQJZcXlg+EZxn0darqjVIk5akUPF7COBfaiVxCZJY8iNj S2lBfnlRf/Zi6P7cZGkHvg0YwFG908Pk4UYo0r/yw5JycbPvKE/w8KwoZCbDLefZICA0 3Mm7q/vTCIINshaMU8CR2N1xCO8uhgftXAyAbNE3VoaDnTlO55DaMpNUCZtIeepTitmp mxzDbg6pB5wKYlOjN+SgXrVgato38ErWYZLF56dd4hjJVacz2eGalwfhkkq5vk5LWfNu ou4g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=bXW3xUU3; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com. [2607:f8b0:4864:20::102e]) by gmr-mx.google.com with ESMTPS id e11si853235vkp.4.2021.02.07.08.52.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Feb 2021 08:52:11 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102e as permitted sender) client-ip=2607:f8b0:4864:20::102e; Original-Received: by mail-pj1-x102e.google.com with SMTP id my11so8296718pjb.1 for ; Sun, 07 Feb 2021 08:52:10 -0800 (PST) X-Received: by 2002:a17:90a:6342:: with SMTP id v2mr12676490pjs.150.1612716730069; Sun, 07 Feb 2021 08:52:10 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id h23sm16659443pgh.64.2021.02.07.08.52.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 08:52:09 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 22F53A182; Sun, 7 Feb 2021 11:51:58 -0500 (EST) In-Reply-To: <2bac3c98-9224-4f1e-bf70-a2e6a8b25a38n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=bXW3xUU3; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:27691 Archived-At: That's a good job for a filter. See the documentation on filters: https://pandoc.org/filters.html or Lua filters: https://pandoc.org/lua-filters.html Felix Wong writes: > Dear All, > > I have numbered lists in a Word document, e.g. > 1. Section 1 > A. Apple > > - apple is yummy > - apple is red > - apple is hard > > B. Banana > > 2. Section 2 > 3. Section 3 > > How can I convert all numbered lists into Headings in md? e.g. > > ## Section 1 > ### Apple > * apple is yummy > * apple is red > * apple is hard > ### Banana > ## Section 2 > ## Section 3 > > > Thank you all. > > Best regards, > Felix > > -- > 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/2bac3c98-9224-4f1e-bf70-a2e6a8b25a38n%40googlegroups.com.