From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32607 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 23:54:15 -0700 (PDT) Message-ID: <256c5b57-18a8-4e45-94ee-0c1e2244f35en@googlegroups.com> References: <59aee5dc-9dbb-4c70-8f33-4c0722546638n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_11810_756746143.1684133655723" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24444"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCOJJAXZ7EPBBGFOQ6RQMGQEIBN3FLA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 15 08:54:20 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f55.google.com ([209.85.161.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pyS67-000692-SQ for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 15 May 2023 08:54:19 +0200 Original-Received: by mail-oo1-f55.google.com with SMTP id 006d021491bc7-55262def2besf290916eaf.3 for ; Sun, 14 May 2023 23:54:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1684133658; x=1686725658; 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=pjNcJsgfgjsUHdTQl9vyT/Zo3EMYGO4DR2+ZN8ocBUc=; b=ToCebneauCWpGiuC4dw20XaOTq6FOTeCuNGbV41k+iuGMtE2fZZL6rvfWGb+k5DET5 +wmJVXuQacBVcS9+UpssJGT/JIQyU2yrWqI31m7h/s6bSj9F5G3/M/uYtxky5k7oI8Ec 0v4f6Yy/HLfFVSD0naUB8a2n9E8mrtjtAzclTjXfEpQuVo7eeX7SEORdmBMpMQKaB44y Cn7v74CFm8GF8R6o/shgnSNsnRMT5SPjSsDDPMPHgxO8bbA+pcf+Tk4aKYBJiP2TQq/h 5JlFxJXJbaExRLf8qdJ6BGcGHRcbn8bJGGm7d1Bq/nAivoJsOqJDQPuGNLrYLolDgMeV JKpA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684133658; x=1686725658; 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=pjNcJsgfgjsUHdTQl9vyT/Zo3EMYGO4DR2+ZN8ocBUc=; b=qd6wOjbQ+hdH7TIQvxT88gDwi8NC1oEILyjQsvXYDInrxCrfuLYy9I5wM1quKbfuSz yexLnGMr48rIfLALiwLjTGSJmxHN1PMTnsVVI7glbXf7JOkXdL19BuXqPuhHZrubr/Fr s/wqXIBrI/bJaKJxC/ddc6ySh1+bo4BXSzlTCRvdeGvFNceBF3Y6Pd37d2XdcW/vKUuW W0D3ifWvlvC2hzeiT1V/yILXpiv4posIoJ7zKeMNBXa+FSmZFaHhbVjhiXFHyS4kCjQB Vr8ASxGdhNNSalwhe0H/7xS5kTT0trV+KjmPtQptnwV7JJ1NXUICUqSa6xOHe+07kemF 2nog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684133658; x=1686725658; 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=pjNcJsgfgjsUHdTQl9vyT/Zo3EMYGO4DR2+ZN8ocBUc=; b=awPG8meSqNoi0lH0T9oor+EW8Dg1NQ4BaKCYwqxdYQg8odgwSp9cmaO2JI/cqRnqaG sU7iuIrGqCIuw56c6I6n/KLudYH8sBoZADCIBOo5rNWo+yeaKn9fySvheT3cxVzQRJjM mIgxkeidy2GzRJe3ERojEKXQEhhy+RdoaXxySD2KHDlVrfrqy4XeHSKVIH56sp+orLdm OpMbsY40YUm+BhXiOTRLA649Os6NH7q1wWRTeb3jyu8/Ej3joOgz83oEWaW++dVskO/h Ga1PoGMiB6G7yM80f5vQwjYIJ2dqtDiQ0Qvs5JAXfekZ82BsR3 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDxtQLaZSuAqHqoU3hEXaIxIf7VpQMN5l4+awzPlgLB22Yca5vmO bxTF/cHzSoUqYiT6H2WT9hI= X-Google-Smtp-Source: ACHHUZ5szJGGn6Ay6SvouZjr9VnRD3tNMzvcscP3V37Vdb068IIx9zz7Uu06n6fQKnsy+t/BTrqPgA== X-Received: by 2002:a05:6808:3312:b0:396:1e7e:e6e0 with SMTP id ca18-20020a056808331200b003961e7ee6e0mr12272oib.9.1684133658627; Sun, 14 May 2023 23:54:18 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:9d9b:b0:195:ca3e:57ec with SMTP id pv27-20020a0568709d9b00b00195ca3e57ecls7692418oab.6.-pod-prod-gmail; Sun, 14 May 2023 23:54:16 -0700 (PDT) X-Received: by 2002:a05:6870:219c:b0:192:7a0a:dc0 with SMTP id l28-20020a056870219c00b001927a0a0dc0mr12224870oae.1.1684133656392; Sun, 14 May 2023 23:54:16 -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:32607 Archived-At: ------=_Part_11810_756746143.1684133655723 Content-Type: multipart/alternative; boundary="----=_Part_11811_366622706.1684133655723" ------=_Part_11811_366622706.1684133655723 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I suggest starting with the Getting Started document=20 (https://pandoc.org/getting-started.html). As you still seem to be=20 evaluating Pandoc as a tool, you might want to try it by running one of=20 your typical markdown files through Pandoc (with `pandoc --from markdown=20 --to html `) and look at the output. If that still looks=20 promising, a good place for further study is the Pandoc User Guide=20 (https://pandoc.org/MANUAL.html). On Monday, May 15, 2023 at 3:18:49=E2=80=AFAM UTC+2 H wrote: > On May 14, 2023 4:04:35 PM EDT, ThomasH wrote: > >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. > > > >Partial because they lack the HTML file preamble and instead just start > > > >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 > > That sounds very promising. My markdown files use H1-4 for structuring an= d=20 > then text in paragraphs with strong or emphasis added as needed. I want t= o=20 > use this information when adding the HTML tags, together with style=20 > information for each tag that is predefined. > > I hope that Pandoc when encountering eg H2 in the markdown document would= =20 > add the HTML tag and the predefined style information and the indent as I= =20 > want it. No empty lines in the entire document but clear readable output. > > Would you have a specific suggestion where in the Pandoc documentation I= =20 > start reading? > --=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/256c5b57-18a8-4e45-94ee-0c1e2244f35en%40googlegroups.com. ------=_Part_11811_366622706.1684133655723 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I suggest starting with the Getting Started document (https://pandoc.org/ge= tting-started.html). As you still seem to be evaluating Pandoc as a tool, y= ou might want to try it by running one of your typical markdown files throu= gh Pandoc (with `pandoc --from markdown --to html <filename>`) and lo= ok at the output. If that still looks promising, a good place for further s= tudy is the Pandoc User Guide (https://pandoc.org/MANUAL.html).

=
On Monday= , May 15, 2023 at 3:18:49=E2=80=AFAM UTC+2 H wrote:
On May 14, 2023 4:04:35 PM EDT, Thom= asH <the...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>= wrote:
>Creating document fragments is the default for HTML in Pandoc, you&= #39;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 runn= ing
>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 docume= nts.
>
>Partial because they lack the HTML file preamble and instead just s= tart
>
>with <div> and end with the matching </div>.=20
>
>Each document contains one or more "sections", each also = beginning with
>a=20
><div> and ending with the matching </div>, and the conv= ersion 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" fro= m within
>Geany.=20

That sounds very promising. My markdown files use H1-4 for structuring = and then text in paragraphs with strong or emphasis added as needed. I want= to use this information when adding the HTML tags, together with style inf= ormation for each tag that is predefined.

I hope that Pandoc when encountering eg H2 in the markdown document wou= ld add the HTML tag and the predefined style information and the indent as = I want it. No empty lines in the entire document but clear readable output.

Would you have a specific suggestion where in the Pandoc documentation = I start reading?

--
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/256c5b57-18a8-4e45-94ee-0c1e2244f35en%40googlegroups.= com.
------=_Part_11811_366622706.1684133655723-- ------=_Part_11810_756746143.1684133655723--