From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31784 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dev Null Newsgroups: gmane.text.pandoc Subject: Failed to recognize headers from DevOps wiki missing a leading space Date: Tue, 22 Nov 2022 14:39:25 -0800 (PST) Message-ID: <9798935e-bb5a-4164-a68e-633a198d69ecn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_470_1627286460.1669156765637" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7739"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD7LR4MKZAKRBHU76WNQMGQE4FGWREQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Nov 22 23:39:32 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f59.google.com ([209.85.160.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oxbvO-0001ou-Ei for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 22 Nov 2022 23:39:30 +0100 Original-Received: by mail-oa1-f59.google.com with SMTP id 586e51a60fabf-14261bd9123sf7549565fac.21 for ; Tue, 22 Nov 2022 14:39:30 -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=ji+3CiQZ9qHflqKVbV9bXrPuqoz5QwEX7VtEQ3Lc3Cw=; b=SQcx1Sl0PVU/N5eLGakKQkE2l5Gah4lasvyHQYsHo1yVR0ulE/XTye55f6R7/1l/xr Jxp/bFn8rHQFUGM78q3Nl5Y/HKoASKkDKTKKfkA8w8SSIfdogpEnkVHXXB2Ml306BxJK 3RX5if7jvBwHBOiX6kV5TxAyedP7iV8nYNBV/BuaEjHipMvIBk5QvnUZIwxwJVFPzuqN XTmT3Bo6L5FkMGZAjxoSW+TRPBwLSj7S5nWFB1x9nPKzU3UA4MEklnYww8c5qsDfp0Cq ypdnXgLljg0UFMRDoOC11UBwfd/2P+jTlYtpPx/CKYz2lVNKFXreZzMeyedxoqM8Gprn E6gw== 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=ji+3CiQZ9qHflqKVbV9bXrPuqoz5QwEX7VtEQ3Lc3Cw=; b=HQ6MVBs3KDzZGPmSr2MP2s2z3cCUzdYGdby3Ub3wGaTkq8+MA9nJDp1BXqOtnzRc0c OQYlUknXUcPiPHvHyMruMTfXthQyppHOUOrDymxigq6tYAQrk7vZfcLu3g4VTs6V1ECA WOMd9pP1rekiRx91THSecR9WGQLzpBtjPyas54044u3PwAWlLLN+XomDzT2qmqkhFjiW nqdiIlY4ixX9YmcuInkEH/Gfdv/4pwQEWqjMKb3t9+eJMYABZZAACa00DP065FFlpkmp RLVThFQcYDr1L07iZAbdGyGhsGXTEOMs6LAJCCRndDWltOkNMWhn9qqOqCOBKQuarIes bmAQ== 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=ji+3CiQZ9qHflqKVbV9bXrPuqoz5QwEX7VtEQ3Lc3Cw=; b=btlBjj3ZcVvkD7mChwXc5Co+/9leje5JlDezDa3wmuCkLKD/mE6aSTHosuD9sDwgNP 1lfOR33JZCuCm4Ror7aH7jpkZ/30Jbm55pfGkUVEfc9ZNtfrdWp/+1ksrkLC4qlAPyBt ot5ZDCiwkipTEXxdgtH5Jr5hz/qBbxP5LXNW0ektlwGEcTa6LY2kU6pbjyTjUrLFZA9d FYBUc0TpLjOCrrq71grolPKRbsb090hpwcPUn3pQ9KJOZND+UVRvOddzw728NjfBh2/R MhyAOjBn5BgBD0O0Ws16e9+2IXNRGTph0rmyB9Uhu9vqhUuBV6uQFxFOUIi1orAqyRjy q7rg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5pn90rnRzVAQy1mjh4OLlaS3Wt7lgaBoRc7upUz5wVRyCt3SVLb5 Qr3EeSpVn5CqYQKkNRLZVc0= X-Google-Smtp-Source: AA0mqf5sUHJXsPsmMW9LfcLQPl/o6+t47prIfi8tqYw2k+chP5ttMUBqRGl0lXp88zETiigiK+MC6Q== X-Received: by 2002:a05:6870:5a2:b0:13b:93ac:4f4f with SMTP id m34-20020a05687005a200b0013b93ac4f4fmr5761504oap.212.1669156769241; Tue, 22 Nov 2022 14:39:29 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6871:5c1:b0:141:8ce4:295a with SMTP id v1-20020a05687105c100b001418ce4295als5075335oan.10.-pod-prod-gmail; Tue, 22 Nov 2022 14:39:26 -0800 (PST) X-Received: by 2002:a05:6870:d9a:b0:142:82ed:92ee with SMTP id mj26-20020a0568700d9a00b0014282ed92eemr12832213oab.28.1669156766506; Tue, 22 Nov 2022 14:39:26 -0800 (PST) X-Original-Sender: dev.null9675234-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:31784 Archived-At: ------=_Part_470_1627286460.1669156765637 Content-Type: multipart/alternative; boundary="----=_Part_471_795815728.1669156765637" ------=_Part_471_795815728.1669156765637 Content-Type: text/plain; charset="UTF-8" Hi All, New to pandoc, and trying to use it to create a Word doc that is a dump of our DevOps wiki tree. It's failing to recognize some of the headers as headers, because Microsoft didn't follow the standard (*gasp!*) or possibly because I'm using the wrong from format? (I've been using commonmark_x as the from format, at the suggestion of the friend who pointed me at pandoc in the first place, but I've tried a few others as well to no avail.) A header like: # thing1 works fine, but a header like: #thing2 (without the space) does not. I looked at using Lua filters, but it seems too late; pandoc isn't reconising it as a header in the first place, as evidenced by converting it to native: [ Header 3 ( "thing1" , [] , [] ) [ Str "thing1" ] , Para [ Str "stuff" ] , Para [ Str "#thing2" , Space , Str "(without" , Space , Str "the" , Space , Str "space)" ] , Para [ Str "more" , Space , Str "stuff" ] ] I can just script-bash up something horrible to s/^(#+)(\S.*)$/\1 \2/ everything, but who knows what I'd break, or what else I'd miss, and that way lies madness. Hoping there's a cleaner fix? Thanks for any advice, - rob. -- 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/9798935e-bb5a-4164-a68e-633a198d69ecn%40googlegroups.com. ------=_Part_471_795815728.1669156765637 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi All,

New to pandoc, and trying to use it to create a = Word doc that is a dump of our DevOps wiki tree.  It's failing to reco= gnize some of the headers as headers, because Microsoft didn't follow the s= tandard (*gasp!*) or possibly because I'm using the wrong from format? = ; (I've been using commonmark_x as the from format, at the suggestion of th= e friend who pointed me at pandoc in the first place, but I've tried a few = others as well to no avail.)

A header like:
<= div>
# thing1

works fine, but a head= er like:

#thing2 (without the space)
does not.  I looked at using Lua filters, but it seems too= late; pandoc isn't reconising it as a header in the first place, as eviden= ced by converting it to native:

[ Header 3 ( "thin= g1" , [] , [] ) [ Str "thing1" ]
, Para [ Str "stuff" ]
, Para
&nb= sp;   [ Str "#thing2"
    , Space
    , Str = "(without"
    , Space
    , Str "the"
  =   , Space
    , Str "space)"
    ]
, Para= [ Str "more" , Space , Str "stuff" ]
]

I c= an just script-bash up something horrible to s/^(#+)(\S.*)$/\1 \2/ everythi= ng, but who knows what I'd break, or what else I'd miss, and that way lies = madness.  Hoping there's a cleaner fix?

Thank= s for any advice,

    - rob.

--
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/9798935e-bb5a-4164-a68e-633a198d69ecn%40googlegroups.= com.
------=_Part_471_795815728.1669156765637-- ------=_Part_470_1627286460.1669156765637--