From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32605 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ThomasH Newsgroups: gmane.text.pandoc Subject: Re: Creating a partial HTML document Date: Sun, 14 May 2023 13:04:35 -0700 (PDT) Message-ID: <59aee5dc-9dbb-4c70-8f33-4c0722546638n@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_15997_1575924488.1684094675897" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17205"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCOJJAXZ7EPBBVP5QSRQMGQEO7YRK3I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun May 14 22:04:40 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f64.google.com ([209.85.160.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pyHxQ-0004GD-5o for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 14 May 2023 22:04:40 +0200 Original-Received: by mail-oa1-f64.google.com with SMTP id 586e51a60fabf-19292e4f3f1sf7894490fac.1 for ; Sun, 14 May 2023 13:04:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1684094679; x=1686686679; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=s3qp8T8m9l1H+qXGGmGLmd2hL40vo5OBamgWhEEZBGQ=; b=rDKMS97/E1cZSkeHVvZyMjyKfpr4kkuKAbVQtREOSGBT0UIOVfmbn2cPk+upyCcfEO bMLAWuv3KuqosBORgJ9VM3nAJcB5HGv/xY4oBrWXAs+rJImAHWMiENmBw78UyqIhWeLP jGTCNv4lZvRZ1JosAlzP3kK5wZzbx//9mpAYw4L0UDnMWVo74MP/6+bTa7UU5XEFZ4Hw eZy6MECHb59hEGzANsffx85kBhsgrEc9NzPhGlKsfPSIGWRh1cYGeXKzxHPHBhI4ZdFP NC6jbZUI21C1zd5va+RnBK/fEMazBq6xZ6XgvJWMQ9nG4K8gd8oS/4XjIdiTtkzxNh7v sJ6Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684094679; x=1686686679; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=s3qp8T8m9l1H+qXGGmGLmd2hL40vo5OBamgWhEEZBGQ=; b=XchYNr6fEUs5SbTeh/YbUIafP8FxHoC2ezXSyHzdIjdZAK4DkU0cRy4aBxi8x6Dld8 SEdNeOIOls5biGJqaBsLvsyR+36075QaNeCgji/gRHYl1RsUeajXZK/9xj4oGjBp5a8Z 8Khc+OTQCYcif/DGxH428oeXlTt+2dY4H88GEB/MUe/vL3eHTQ9PUQ0jQNUdK+Ob1liW jTpkeSw38gsLKjQ+v/A2L18rjpeTpWZlSiXGCEx7Z6S3OOcfLWY29x9B2Bj6bosGXHQ9 PW6rSAuVW8Y2toDiv7m59MStAHQwParDBN9qlMZWepkzcTUsY/y5D6v2VC57vc5HmRy8 FHLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684094679; x=1686686679; 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:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=s3qp8T8m9l1H+qXGGmGLmd2hL40vo5OBamgWhEEZBGQ=; b=PQVBBpFPjFrSMBzHt43FWSWsIduQGj0QZweijtbjbcZebkRPoGgNGM4ZISK/wWyVT2 D0yRtddpr5aWL3eHUlDYJcFa85RrBWwJpSwczxI7BXmONdF+hEko+pV5VnI3qxa0+x/X XXfW6mapQRQagqNGyhiFOLNsC6Kq1jQglhWanmXyfHf7dVe7YpET5M9kjYMe7L2HbGvu Y83AssZ4JS4QJ+e+mCE5I12jFNzfxXD2xSfJ3pOrheklMGy3i0i4tAToLZw6/jV+MlmW RPxGmPKTzbpe13t/58mbl1jO5hI3UmbC/ZzVADYoFuR3o/SZDj Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDzTIi9sq33brmSOD0xuXoXGWNgHm3vYMWTAoau1rvMxH8l3OTu/ iasko9ed7RTztnt25qWN9Bo= X-Google-Smtp-Source: ACHHUZ4DDWa2zat1MQYRUO+u1P9nEJgnvkbiF0BiSgiIvJW/Hgk9DBZ6UkqZax3/sAyjbPjudgAn+g== X-Received: by 2002:a05:6870:bb0f:b0:192:7333:5afd with SMTP id nw15-20020a056870bb0f00b0019273335afdmr12373144oab.7.1684094679130; Sun, 14 May 2023 13:04:39 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:4196:0:b0:552:3742:af85 with SMTP id x144-20020a4a4196000000b005523742af85ls1137898ooa.1.-pod-prod-08-us; Sun, 14 May 2023 13:04:36 -0700 (PDT) X-Received: by 2002:a4a:d1a3:0:b0:54f:ba9c:3ca2 with SMTP id z3-20020a4ad1a3000000b0054fba9c3ca2mr5623538oor.1.1684094676532; Sun, 14 May 2023 13:04:36 -0700 (PDT) In-Reply-To: X-Original-Sender: therch-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:32605 Archived-At: ------=_Part_15997_1575924488.1684094675897 Content-Type: multipart/alternative; boundary="----=_Part_15998_1049122421.1684094675897" ------=_Part_15998_1049122421.1684094675897 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Creating document fragments is the default for HTML in Pandoc, you'd have= =20 to use the `--standalone` option to force it to create complete documents= =20 with header and footer. So that should meet your requirements. I don't know about indentation of the resulting HTML, much less so about=20 your preferred indentation. But this is easy to find out and might be=20 helped by post-processing if it doesn't meet your expectations? I also cannot comment on Geany, but most editors have a way of running an= =20 external command on the current buffer or selected text. On Sunday, May 14, 2023 at 7:36:15=E2=80=AFPM UTC+2 H wrote: I have a recurring need where I write markdown documents using my favorite= =20 editor, Geany, and then need to convert them to partial HTML documents.=20 Partial because they lack the HTML file preamble and instead just start=20 with
and end with the matching
.=20 Each document contains one or more "sections", each also beginning with a= =20
and ending with the matching
, and the conversion process=20 should be handle the sections, regardless of number.=20 I like the resulting (partial) HTML document to use my preferred=20 indentation/white-space structure.=20 Would pandoc be a good, perhaps the "best", tool for this? I should also=20 add that I would like to run the conversion "process" from within Geany.=20 --=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/59aee5dc-9dbb-4c70-8f33-4c0722546638n%40googlegroups.com. ------=_Part_15998_1049122421.1684094675897 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Creating document fragments is the default for HTML in Pandoc, you'd h= ave to use the `--standalone` option to force it to create complete documen= ts with header and footer. So that should meet your requirements.

I don't know about indentation of the resulting HTML, muc= h less so about your preferred indentation. But this is easy to find out an= d might be helped by post-processing if it doesn't meet your expectations?<= /div>

I also cannot comment on Geany, but most editors= have a way of running an external command on the current buffer or selecte= d text.

On Sunday, May 14, 2023 at = 7:36:15=E2=80=AFPM UTC+2 H wrote:
I have a recurring need where I write markdown documents using my fav= orite editor, Geany, and then need to convert them to partial HTML document= s. Partial because they lack the HTML file preamble and instead just start = with <div> and end with the matching </div>.

Each document contains one or more "sections", each also beginning wi= th a <div> and ending with the matching </div>, and the convers= ion process should be handle the sections, regardless of number.

I like the resulting (partial) HTML document to use my preferred inde= ntation/white-space structure.

Would pandoc be a good, perhaps the "best", tool for this? I should a= lso add that I would like to run the conversion "process" from within Geany= .

--
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/59aee5dc-9dbb-4c70-8f33-4c0722546638n%40googlegroups.= com.
------=_Part_15998_1049122421.1684094675897-- ------=_Part_15997_1575924488.1684094675897--