From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32637 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: Tue, 16 May 2023 16:39:40 -0400 Message-ID: <2ea6ffbc-e589-627c-4efe-b8e820cfd797@meddatainc.com> 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="------------E067233C7B7C4EAA0ADABC9E" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24492"; 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+bncBCEIZSNSZ4IRBD6UR6RQMGQEUH7CO4I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue May 16 22:39:49 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f184.google.com ([209.85.210.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pz1SW-0006Dn-HZ for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 16 May 2023 22:39:48 +0200 Original-Received: by mail-pf1-f184.google.com with SMTP id d2e1a72fcca58-643bc9cb443sf7078219b3a.1 for ; Tue, 16 May 2023 13:39:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684269587; cv=pass; d=google.com; s=arc-20160816; b=mVprIBghGgTeAMFxXFSSBNVJ+cpqeqhMTSLfRYNuVCeomYqdFCbFJznktaYqVtE32e N+b7SbtYP0mfVEcawcWk0CzK1rdIrcgD3a5oLjMKEk42rUFNk2U4za9vzw8HHYPPNw4z jJIThHVPQCBzbTdBmmMTyfkVt5uG7vYPG8zugISSyUW63ITWn6B0bulTfdv0QtNzfkjn Ll31DDDxk4Gl8OxsJOZFGP7Hy0DBAaBFbWrD8yzDnUPZmBQP+AUvRg+yyzY+2vmZmD93 g4UxhKRyC0yGPNZ3qcFFCy6vdmjwxcQsuQZbqa58pwSNSAjHHXoR/OvkSqp5TwZQZpB3 MRuw== 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:references:to:from:subject:sender:dkim-signature; bh=Ab5NdDkX8lT3Vkm4hSpVYoyKkHHDV6DD2EAj2fPms50=; b=guMqfTt0oCAwOcbzZpdKvN/rbkPpTESRUZW0UPvAM2BCFpxG8w+SJ721cUMgTa0yxn c3OzqMGWwFb2q5SGO+tgtF7/4YA4O1LO9NcmbaukJuxltKkP/ryKhx+h9aglHe9zNab4 Zf4cbjS9HILJ8ReGzQmb7Ki3Tq86Akc7vZsyD/gL6onr21gCdzKQkEKMo+TId7DwtAAg 289A3mCagZiMA5/f5iknYoVT+ucPQq+C5B2Y1bNGjsc++o/JTk5AdXZbb3r9BF3Gp+1t apKWUFA3FarprDx6ToVt5ZzBCgODT2Zh6qJFoKe6trHRl+4d3hF/avBY+6HyOtbNqWNY zEXA== 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.196 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=1684269587; x=1686861587; 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:references:to:from:subject:sender:from :to:cc:subject:date:message-id:reply-to; bh=Ab5NdDkX8lT3Vkm4hSpVYoyKkHHDV6DD2EAj2fPms50=; b=qEgxs//fHP8p/ztl28K5Gu7JOUjhtEUWOckbJ1WR0acuXSGoLmQo6k0Yuo6hNDjDiv 9Yy+bb3Y+mxljXN4Y3ZlZA6kiwjv2uq24X+puw7D7saN/P8d5UKVjCiSde2lfw5VZbMF gdL4YWsi/feGI5ikmqy7Oxn+5BCgDeNpiU6kmoGRRmOIvz/glb09Jb0v5cvhPXI/FKHO XD4mdoziQoUBhn4D0bRptOMRDHFMuEFR51o1l2iSjVesdogE7DaRW0NZUtLyAlvh0mW3 vOq/SanD/l7zt2yTW X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684269587; x=1686861587; 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:references:to:from:subject:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=Ab5NdDkX8lT3Vkm4hSpVYoyKkHHDV6DD2EAj2fPms50=; b=gM7akTXS7PxqQ2Oi6ohIa1UzMVg4m8wfnP5wd0ys0ebKHcW5UUGin7vxum7wedeHvK V4vbk0uQp7aUa0qPsgajrZ99DjyHKteUk+euRX9N8ievjTtl1AFQGXqUbJcZu4ad1Oyv mbIP1DWnFC6Yb5gtjIJnKdTLzjXpfO+D6R6QzUI0C1SG4OF2IHxrjAgnsf8h52n2PYe9 VrtDy2320/F/0/cR3zd6JVfFjHHq Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDxcc21tBNRUhRvmMd5lnShQv9AtFjVEbVx/XbZY8rUEpB3STUwo VSBfchkG9qgIT0rUeDpzlNQ= X-Google-Smtp-Source: ACHHUZ53rCODEWyrxebdgDM9iEi0EfZO7MkFiCeOdDcOQ+JHzzeUWnJvcClOc4C0lv7isUBx+AsbrA== X-Received: by 2002:a05:6a00:80e3:b0:63f:244d:cd0e with SMTP id ei35-20020a056a0080e300b0063f244dcd0emr9350298pfb.2.1684269587057; Tue, 16 May 2023 13:39:47 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90a:fd96:b0:246:6edd:bdde with SMTP id cx22-20020a17090afd9600b002466eddbddels359782pjb.0.-pod-prod-07-us; Tue, 16 May 2023 13:39:42 -0700 (PDT) X-Received: by 2002:a17:903:11cd:b0:1ab:94:1ee4 with SMTP id q13-20020a17090311cd00b001ab00941ee4mr48111394plh.2.1684269582800; Tue, 16 May 2023 13:39:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684269582; cv=none; d=google.com; s=arc-20160816; b=QFNriyMG/aIpXmgm37d7XE0tYOA/+FNnzXMgHNwEQrtaXaKylKxzWEFgQcb7C4VA2V A7JtxuZbYZWxGnvr9WI/n+Yk/eY+6z5k/xRPTNHYrYzjeN0tCVfpORNXIX7dpbs68hq9 1pN14gv9xPsnmumpEAYArjSspYyAl1ydjUZPZP240uPY27BILdojpvZGP1hXmjW8yVwy cVHBwNxbvNQpuN+Nz59Uaah60vZfDdz+cf9Y80hnL+2Ria7q72/Y/b48KvcmWwe6KOak SIPQeHqd19DcAKq+DBPD8pjF699dnm3qmpESKkDqNLVJEUkvIV2JOCNhnQzj2p2rq1Bv aDqA== 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:references:to:from:subject; bh=ieX8+GVKKLCyriZRmcfIvBRp+LpEA2LpnpYFw6s6El4=; b=vhkQwGmzdejKlmod98smD9yPL0Srg5SnJw5/xYbgb871skMUiZa+lhJqOE1lRfIR6Z CPp4++nSq4pjXumv8R/UUAY95PiFwyyrsxZEDK93PGig05TbJqm2pVpFRV1WOOhrVni0 0R1MIgW1PiXTXoslT30mJTkbKDipyDe8RSlZvc5hcczYIuNrBxvwGgDj4+u/5BXbgkp0 s/ToeuqYXMfHto5irr0EdwectmNLpN35PEZb9haH7nw5LjVLsCvZgTs7GMI4DozOyykl mWb6X9HyOSqbiCSrmnj4aSDF6hFegLl1HsX5lIe8mExTHwJ0/n6BY3OZVVkrHg+a825t mm/g== 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.196 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.196]) by gmr-mx.google.com with ESMTPS id kw14-20020a170902f90e00b001ab0493c81dsi1039055plb.13.2023.05.16.13.39.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 13:39:42 -0700 (PDT) Received-SPF: pass (google.com: domain of agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org designates 74.208.4.196 as permitted sender) client-ip=74.208.4.196; Original-Received: from [192.168.1.17] ([72.94.51.172]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1N5mzf-1qDMes2A3f-017Gbs for ; Tue, 16 May 2023 22:39:41 +0200 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:HeqJWyPX44yojO0+XC6J6P6GtYPRRD73+NHQcWaURDBPMDJlF7z YAJpqJp4AYfQNtLVQMKhOM/W4icsfoZzczx/a6KFqucKmczVF+QOWB3pA5cGQHCv57oGGn2 3tOoeuHDv2mN77xQhwvLTVOsBoYK044KBHthNSkJZMdEowW4M1h6sLb2s4dc4h17pILJ3jn NI7x1uZaWRc/+YeVdayJg== UI-OutboundReport: notjunk:1;M01:P0:cxVPwUDA/ww=;jr3duY00QvI1ItmLR3Z/6rAMvSy aWAQNrbBCVivNBTFIT3pUSlMsuF17mzooGArAvndt8zV8dgnwdnbCVfco3NC4fWwUHzKFtcQh y8e8IjhWxNtHFErpF21xcH3Nbzl8AD18BKnuFJMN7a+i4iByBd+dx3Cv9ofVRYgQBcINbcTBF CphaZbv4XrtIKsJKJPM/61mqncY/2zxS0CsLdPobvUMCn7LbRRKOu60+J5A9Wy2uKMWd0X3ih k+HJVEjQd/wQkIFUrVULur0MWtTBSvX3GDG7dF60NWUsd0cfddrSbTITeHrpO19feuNKZKZQR RQNG9yFQps0niFxl7dXDFKfkGHLwnctnannNLA4M0yqTqRvZfpKmpeUFItDdOcAokbDhnyIzo zs5gjK1suhbM6CcIbmEoosHuNmLi74VoSZRxPO0+alObkyRZP5qCOi4f0ZMKh7th3snqNwWCM +HsDQbztJZ2lO7wQQrKUFJCapiwGtgrsVJbFhYEZlt3SkJTvln2EMljxq+YBpcIp7VNh0EEGY 7LeTBWZcwVMhRwcoJFF5b7aiL87gUio+P7VMWllt/LlqSjGvloP3+9+0ib5DfaSJRgzVIMA4a P5l54hSO1sSdcXYxwnvWfR2ElzOC+lDZOU+dE+2faizM5/ZDO2nVyup8jnqGxCZfQzpl6lS78 bHzqPITwZZI3esPoWaxVOvGgUAbb2k6OAuv+aEB6JQ== 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.196 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:32637 Archived-At: This is a multi-part message in MIME format. --------------E067233C7B7C4EAA0ADABC9E Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 05/15/2023 04:52 PM, H wrote: > 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 th= rough Pandoc (with `pandoc --from markdown --to html `) and look = at the output. If that still looks promising, a good place for further stud= y 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 = 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 runn= ing >> >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 docume= nts. >> > >> >Partial because they lack the HTML file preamble and instead just s= tart >> > >> >with
and end with the matching
. >> > >> >Each document contains one or more "sections", each also beginning = with >> >a >> >
and ending with the matching
, and the conversion proce= ss >> >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 structuri= ng and then text in paragraphs with strong or emphasis added as needed. I w= ant 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 outp= ut. >> >> Would you have a specific suggestion where in the Pandoc documentati= on I start reading? >> >> --=20 >> You received this message because you are subscribed to the Google Group= s "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . >> To view this discussion on the web visit https://groups.google.com/d/msg= id/pandoc-discuss/256c5b57-18a8-4e45-94ee-0c1e2244f35en%40googlegroups.com = . > > Thank you, I will begin as you suggest. > I did a test run and realize the following needs to be fixed to work for my= use: Output: - pandoc inserts an id for each header that I have no need for and need to = get rid of. - The output is wrapped at around 72 characters which I also do not want. - I need to have
tags added to meet the needed output format. - I need to have a style added to each HTML tag. These do not vary and coul= d be predefined by me. - The output needs to be indented one level for each
level. Can I modify the pandoc processor to accomplish the above? Input: On another note, I would much prefer if I would not need to add an empty li= ne between paragraphs in the markdown document to get the output processor = to add

tags appropriately. A line break should suffice for pandoc t= o realize it's a new paragraph. Is this fixable by me? Thanks. --=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/2ea6ffbc-e589-627c-4efe-b8e820cfd797%40meddatainc.com. --------------E067233C7B7C4EAA0ADABC9E Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On 05/15/2023 04:52 PM, H wrote:
On 05/15/2023 02:54 AM, ThomasH wrote:
I suggest starting with the Getting Started document (https://pandoc.org/getting-started.html<= /a>). 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).

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@googlegroups.= com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc= -discuss/256c5b57-18a8-4e45-94ee-0c1e2244f35en%40googlegroups.com.

Thank you, I will begin as you suggest.

I did a test run and realize the following needs to be fixed to work for my use:

Output:

- pandoc inserts an id for each header that I have no need for and need to get rid of.

- The output is wrapped at around 72 characters which I also do not want.

- I need to have <div></div> tags added to meet the needed output format.

- I need to have a style added to each HTML tag. These do not vary and could be predefined by me.

- The output needs to be indented one level for each <div> level.

Can I modify the pandoc processor to accomplish the above?

Input:

On another note, I would much prefer if I would not need to add an empty line between paragraphs in the markdown document to get the output processor to add <p></p> tags appropriately. A line break should suffice for pandoc to realize it's a new paragraph.

Is this fixable by me?

Thanks.

--
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/2ea6ffbc-e589-627c-4efe-b8e820cfd797%40meddatainc.com.
--------------E067233C7B7C4EAA0ADABC9E--