From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32621 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: H Newsgroups: gmane.text.pandoc Subject: Re: Creating a partial HTML document Date: Mon, 15 May 2023 16:52:51 -0400 Message-ID: References: <59aee5dc-9dbb-4c70-8f33-4c0722546638n@googlegroups.com> <256c5b57-18a8-4e45-94ee-0c1e2244f35en@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------BB30779461E398817A9A3298" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25202"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCEIZSNSZ4IRBJNXRKRQMGQEATSR5YI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 15 22:52:58 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f190.google.com ([209.85.215.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pyfBi-0006LF-2Z for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 15 May 2023 22:52:58 +0200 Original-Received: by mail-pg1-f190.google.com with SMTP id 41be03b00d2f7-528ab71c95csf6748431a12.0 for ; Mon, 15 May 2023 13:52:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684183976; cv=pass; d=google.com; s=arc-20160816; b=PyOY8WwwQM5Ak85scTi86L9K5oF0tPfHvaIGA899Sdqv/OM5I9Ra6vn9HLojO56ogy +1ERMQJHypjESHOpu9eqkpwiYA64jRmvvnZW/WAdf+q7kOBHV1HVbPZJy4bUQ+LRkUfm iyGMELhNl0FOcuM8pMhJiaVCJkRsn1a07RBLzxRXIeIV1Lj8Xy+9pt5aDuJ4Bv6lD/nd KpdKb1RzRXsMKRqfkNYnoHzehZpxyUM1cu9rubBvIs9qqfagQvz1cH4QXgeOuDGi4HRA qrnD/1rlRej74ESfS8auUzv56/okMLuolotwvNlun1B8OGN/f/5JiQsG0TzeI0yOp/iG UJJA== 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:ui-outboundreport :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:sender:dkim-signature; bh=PhZxDW+O0ppqzsRGsT0XB52ieNM1hota7Pn49h1qjpU=; b=j8VL8DI0DoKEePs4EuooXxpbF0W94serDTpmxZTGXzl3PBrr6WTMZiPnZeUGG+NGp7 cG1fGvtuByOYxv4+irsXCQtpZWWS8KETKfc34JfqSXTrqS8+8tcNi518av1R21nIA5D7 qnaqmbiwQ5+/jVK2wlCMm0Bl+gxIQeanxg58MwC/Nnfa9Wy1kLdTl6u0xA4vm00rSBoO fTO+FuCyKVrGmTOwwEJych6ygMb5OOuyU9tY56g/XqmoyvM5WijiTprinYHooieUxk7v LVmbvY/TzuJGNpCWzTZxcXaraRlKXs/vWHvrqRbhOsQHwri4T5DV2QXAL4j2AXQWahC1 BLZg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org designates 74.208.4.194 as permitted sender) smtp.mailfrom=agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=meddatainc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1684183976; x=1686775976; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender :ui-outboundreport:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject:sender:from :to:cc:subject:date:message-id:reply-to; bh=PhZxDW+O0ppqzsRGsT0XB52ieNM1hota7Pn49h1qjpU=; b=oNLR4qWnVEtqzrTRcT/W6P0S7E+uJX+rwSSYrJeIjjnWBBX7GlaXFt1H2UTwQHuQBM VycieUvKkRJjStc4iFh81hi88RoeBNIyrOuZOfj3aPBEt+gSq+aXCl/JbYLQi3TWR5hP TbCKpflTlPp23Pn0toH93UNaY8e7EsPbogM0VDNJDiCZO/7SmROlr4gi/GEMcrzupLkw 59GdksSa6E0VZkoNFvMLYeb2qEWM4rHXeX1exZTqvdLYuow+kXvBl4j0Vdoggd2XGGrF yWRwgEARdmWO9EzJ1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684183976; x=1686775976; 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-authentication-results:x-original-sender :ui-outboundreport:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=PhZxDW+O0ppqzsRGsT0XB52ieNM1hota7Pn49h1qjpU=; b=cux8M80X+2izz9FAlfLuypS5f2xTuTQ+vbPIcNClQ/sytgOxX45fY3kWa9YBCCjaTF CBfHPWeYXBpFJVwpPoHNl8geWmiP8ItSp1feSseh/s75Lx5aW5Q6WJ32ZGv6GXE0GN3+ G2nkpo/B0y3ZGKVTrVIufrWAOYd7HsGFZDvSg5STIK6ahAQJwj1NXlq/9uUvurHPAB1U ROXNckyIlNkYPxOQaxOkb1o8PIgk Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDz4Ks+GWtdkaEA04D1Y8XLAB/RXSFhbEVHmsFTaBM6EICwDC9un dKavNkSQOydtrtJSveiK/Gw= X-Google-Smtp-Source: ACHHUZ44j36eGagl4iF8TRRoO93tTy6COjGRrpazebrvSTadT/ic0JEr7Jjw3WCJOwdnwcky78dFmw== X-Received: by 2002:a63:2a4a:0:b0:513:9238:8c16 with SMTP id q71-20020a632a4a000000b0051392388c16mr9515471pgq.0.1684183976704; Mon, 15 May 2023 13:52:56 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:903:41cf:b0:1a1:a83b:2ab with SMTP id u15-20020a17090341cf00b001a1a83b02abls5059839ple.7.-pod-prod-gmail; Mon, 15 May 2023 13:52:53 -0700 (PDT) X-Received: by 2002:a17:90a:ee88:b0:247:13f5:47de with SMTP id i8-20020a17090aee8800b0024713f547demr33929651pjz.44.1684183973049; Mon, 15 May 2023 13:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684183973; cv=none; d=google.com; s=arc-20160816; b=oObygSskOPqii9AoiZu3hB1uxVpAXZgSZ5U3CcqpHcS/cM/2rShNKcOlS9OQQht/QY siLM6VyuoLp4aKOi77gs8EuUmKPwUoI834Cj3YeZbF3DFD2Mpojs3usZRc+fj1U0mpYh W3Diq/tv0KilvwPe3qkw7KaeM7cc1TI0dbxHnDJt3/v0nb4WanlLdjNuGXQkV6bO/8od NQxdB8JhKjWnSPweCOXNTsp8fb5OXo1Yv4jH8VCCcrbp2BWajAYO2l0kl1hvq8kURGgQ Oj8OeDSv2OaTggfmRBjpjs2YtuOAzmyiOg1z6LaeGLWn2YQUfrNpfJrIqzw/NTx40z6X 2G/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject; bh=ZdBm/Nba1i6GkiPmxcj7SYf9K1Jq/nADbgOwzZ8BQPM=; b=IKfuDDCaefg4qI0KnlY10y/EU2abGLHF6DxR1ttz8mMs+vKgwLsn94DurWNNxC8S0Y oM6RkNg87HkPp8Jy+fm9918s3SpSZAzT0GSbGQmukrZniTwmxjJqdQF3b9vrYzOXo2+O WxSOaktojNgCeInJAY9nnuxlcyCZtUA6EAU8MD61oyScPvY3p9H6Fq4re1h1ejsDbsoZ HSH3Hyax0KxsPFxoZTTUryGzjxMUkgCI1i9HmsSs98BkEOcgXAZxJsXdU9JvZ4kFSotD Vl7Y3HX/j9scxS1Pl9u8IlZo9DHe5VUQXswBHo5QbNzWniTZXcv27GVrzAsaaWBHbPty tgQQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org designates 74.208.4.194 as permitted sender) smtp.mailfrom=agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=meddatainc.com Original-Received: from mout.perfora.net (mout.perfora.net. [74.208.4.194]) by gmr-mx.google.com with ESMTPS id d15-20020a656b8f000000b005342c9c0829si94008pgw.1.2023.05.15.13.52.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 13:52:52 -0700 (PDT) Received-SPF: pass (google.com: domain of agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org designates 74.208.4.194 as permitted sender) client-ip=74.208.4.194; Original-Received: from [192.168.1.17] ([72.94.51.172]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MhBdX-1pln2Q3FwX-00MHyf for ; Mon, 15 May 2023 22:52:51 +0200 In-Reply-To: <256c5b57-18a8-4e45-94ee-0c1e2244f35en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Content-Language: en-US X-Provags-ID: V03:K1:UEqP7t9KxzIqHGxvkCL32pacTqylop4ewm2eXdz2nPa2gzQARCX hhnZc18YfYrAi2zpId10MhYAx9I1chnxdRsDImZiDhM/DUgmmaaLgqSJHf5bVFzidlSKB9X oVjAopYTCJvjf1NzZWIzk9pfxhblH589zdQdbFAMdiE5lznq0UIgHFmugRHRzdGNTJDaV8J I6Mc0wbiu863/a36VCmWg== UI-OutboundReport: notjunk:1;M01:P0:jgTCR++fV10=;//tEctiEe6LClyoErTck+caCH0s hkKGUgIBvDzzJ+pz/YNksEEASeHOXSKR+7H3SGRerIkBDJLQf8gVtioHL5is/TomXI9xt4YQN KDr9Vo5SM9JcYL0nQAiMWU6luOjJivWqxylNbFge9DAOIgLsy42N03SHctm3ws0fkY3y15ddk AsFRBCEGv19jybEKhirF1dnUnX/TRWkuv/vng13dXS67GrMTtoCi5i0o/55KOBWQwQUzG1dMt pAhm3YQmNgLaJqTCfExBXxvFX3AFQ6RgMC6kp0yuNMtrJvdTNN3LCc0iqlADVbjoFmhOXeKFi AKcLwQwX9It6tSNSesmc/N00jpPtS2h/2eWTdmOpPsMjUshKm+pBR+cQWVMtPkVxncvF7fpmq jan+i5pDoOx2RriJ/WZ0JsgtMAeN37WEGISd6KEQmhjDqq4vDBTRbd9rXzItwr14om+0BvzTt M/5OD9vQen1gk+91mS80K8YtyItgYf1by+KSLQdiY5ujP2LwAA/aMdQZ041prQN+bQv+Z2RuK Stjyb81B+ewM6o28exCmgdF9hEBM8bDqUezV2U+1HwMyPQbI4ot8nmEPIciZL5TLkwyTh/Ipq 9PHwz3g8BnNdtw6GABmqJVrVu1wt7Blw8pzOPbJR8/DIsyYhKM8C63A3l3mmfFgPD9eo8/dgE g8EO0ypiEsIt88dfdrpF5KKynRACCX7ZdfDuxVBKhg== X-Original-Sender: agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org designates 74.208.4.194 as permitted sender) smtp.mailfrom=agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=meddatainc.com 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:32621 Archived-At: This is a multi-part message in MIME format. --------------BB30779461E398817A9A3298 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 05/15/2023 02:54 AM, ThomasH wrote: > I suggest starting with the Getting Started document (https://pandoc.org/= getting-started.html). As you still seem to be evaluating Pandoc as a tool,= you might want to try it by running one of your typical markdown files thr= ough Pandoc (with `pandoc --from markdown --to html `) and look a= t the output. If that still looks promising, a good place for further study= 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, ThomasH wrote: > >Creating document fragments is the default for HTML in Pandoc, you'd > >have > >to use the `--standalone` option to force it to create complete > >documents > >with header and footer. So that should meet your requirements. > > > >I don't know about indentation of the resulting HTML, much less so > >about > >your preferred indentation. But this is easy to find out and might b= e > >helped by post-processing if it doesn't meet your expectations? > > > >I also cannot comment on Geany, but most editors have a way of runni= ng > >an > >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 > >editor, Geany, and then need to convert them to partial HTML documen= ts. > > > >Partial because they lack the HTML file preamble and instead just st= art > > > >with
and end with the matching
. > > > >Each document contains one or more "sections", each also beginning w= ith > >a > >
and ending with the matching
, and the conversion proces= s > >should be handle the sections, regardless of number. > > > >I like the resulting (partial) HTML document to use my preferred > >indentation/white-space structure. > > > >Would pandoc be a good, perhaps the "best", tool for this? I should > >also > >add that I would like to run the conversion "process" from within > >Geany. > > That sounds very promising. My markdown files use H1-4 for structurin= g and then text in paragraphs with strong or emphasis added as needed. I wa= nt to use this information when adding the HTML tags, together with style i= nformation for each tag that is predefined. > > I hope that Pandoc when encountering eg H2 in the markdown document w= ould add the HTML tag and the predefined style information and the indent a= s I want it. No empty lines in the entire document but clear readable outpu= t. > > Would you have a specific suggestion where in the Pandoc documentatio= n I 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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/256c5b57-18a8-4e45-94ee-0c1e2244f35en%40googlegroups.com <= https://groups.google.com/d/msgid/pandoc-discuss/256c5b57-18a8-4e45-94ee-0c= 1e2244f35en%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter>. Thank you, I will begin as you suggest. --=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/d8c58326-c9a4-9a5b-973c-dea044654bda%40meddatainc.com. --------------BB30779461E398817A9A3298 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On 05/15/2023 02:54 AM, ThomasH wrote:
I suggest starting with the Getting Started document (https://pandoc.org/getting-started.html). As you still = seem to be evaluating Pandoc as a tool, you might want to try it by running one of your typical markdown files through Pandoc (with `pandoc --from markdown --to html <filename>`) and look at the output. If that still looks promising, a good place for further study is the Pandoc User Guide (https://pandoc.org/MANUAL.html).<= br>
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 <the...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>Creating document fragments is the default for HTML in Pandoc, you'd
>have
>to use the `--standalone` option to force it to create complete
>documents
>with header and footer. So that should meet your requirements.
>
>I don't know about indentation of the resulting HTML, much less so
>about
>your preferred indentation. But this is easy to find out and might be
>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
>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
>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 <div> and end with the matching </div>.
>
>Each document contains one or more "sections", each also beginning with
>a
><div> and ending with the matching </div>, and the conversion process
>should be handle the sections, regardless of number.
>
>I like the resulting (partial) HTML document to use my preferred
>indentation/white-space structure.
>
>Would pandoc be a good, perhaps the "best", tool for this? I should
>also
>add that I would like to run the conversion "process" from within
>Geany.

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 information for each tag that is predefined.

I hope that Pandoc when encountering eg H2 in the markdown document would 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 "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-d= iscuss/256c5b57-18a8-4e45-94ee-0c1e2244f35en%40googlegroups.com.

Thank you, I will begin as you suggest.

--
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/ms= gid/pandoc-discuss/d8c58326-c9a4-9a5b-973c-dea044654bda%40meddatainc.com.
--------------BB30779461E398817A9A3298--