Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Eureka! -- Archimedes


devel / comp.lang.forth / Markdown to HTML in Forth

SubjectAuthor
* Markdown to HTML in ForthBrad Eckert
+* Re: Markdown to HTML in ForthMarcel Hendrix
|`- Re: Markdown to HTML in ForthJurgen Pitaske
+* Re: Markdown to HTML in ForthHans Bezemer
|`- Re: Markdown to HTML in ForthRon AARON
+* Re: Markdown to HTML in ForthS Jack
|`* Re: Markdown to HTML in ForthKerr-Mudd, John
| `* Re: Markdown to HTML in Forthminforth
|  `* Re: Markdown to HTML in ForthBrad Eckert
|   `- Re: Markdown to HTML in ForthS Jack
+- Re: Markdown to HTML in Forthnone
+- Re: Markdown to HTML in ForthStephen Pelc
`- Re: Markdown to HTML in ForthBob Armstrong

1
Markdown to HTML in Forth

<c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24487&group=comp.lang.forth#24487

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:3181:b0:76f:454:8e6a with SMTP id bi1-20020a05620a318100b0076f04548e6amr98028qkb.4.1693492959517;
Thu, 31 Aug 2023 07:42:39 -0700 (PDT)
X-Received: by 2002:a63:7743:0:b0:569:450d:cf3d with SMTP id
s64-20020a637743000000b00569450dcf3dmr681123pgc.6.1693492959196; Thu, 31 Aug
2023 07:42:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Thu, 31 Aug 2023 07:42:38 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=72.217.63.66; posting-account=6GCGIQoAAAAyO8IjR_VTwqiqLwx0Q_G8
NNTP-Posting-Host: 72.217.63.66
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>
Subject: Markdown to HTML in Forth
From: hwfwguy@gmail.com (Brad Eckert)
Injection-Date: Thu, 31 Aug 2023 14:42:39 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1292
 by: Brad Eckert - Thu, 31 Aug 2023 14:42 UTC

Hi All,

I'm pretty sure HTML has been generated by Forth documentation tools before (like MPE's DocGen), but is there any public code for processing Markdown?

I want a tool that translates a wiki-like syntax to HTML page(s). I will probably end up writing one, but I would like to see what's out there to get some ideas.

Re: Markdown to HTML in Forth

<de447301-3de7-4890-93ab-99e36c44db66n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24488&group=comp.lang.forth#24488

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:48e:b0:76f:8b7:1fa8 with SMTP id 14-20020a05620a048e00b0076f08b71fa8mr3643qkr.6.1693506279385;
Thu, 31 Aug 2023 11:24:39 -0700 (PDT)
X-Received: by 2002:a63:794b:0:b0:565:e467:ef5e with SMTP id
u72-20020a63794b000000b00565e467ef5emr94643pgc.5.1693506278799; Thu, 31 Aug
2023 11:24:38 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Thu, 31 Aug 2023 11:24:38 -0700 (PDT)
In-Reply-To: <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:1c05:2f18:6d00:b40b:d953:68e7:8314;
posting-account=-JQ2RQoAAAB6B5tcBTSdvOqrD1HpT_Rk
NNTP-Posting-Host: 2001:1c05:2f18:6d00:b40b:d953:68e7:8314
References: <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <de447301-3de7-4890-93ab-99e36c44db66n@googlegroups.com>
Subject: Re: Markdown to HTML in Forth
From: mhx@iae.nl (Marcel Hendrix)
Injection-Date: Thu, 31 Aug 2023 18:24:39 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1682
 by: Marcel Hendrix - Thu, 31 Aug 2023 18:24 UTC

On Thursday, August 31, 2023 at 4:42:41 PM UTC+2, Brad Eckert wrote:
> Hi All,
>
> I'm pretty sure HTML has been generated by Forth documentation tools before (like MPE's DocGen), but is there any public code for processing Markdown?
>
> I want a tool that translates a wiki-like syntax to HTML page(s). I will probably end up writing one, but I would like to see what's out there to get some ideas.

FFL, e.g., XIS and XOS ?

-marcel

Re: Markdown to HTML in Forth

<e39d0ecf-fa9e-4210-9d1d-3cd9a96ac2cen@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24489&group=comp.lang.forth#24489

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:145:b0:76e:e858:3511 with SMTP id e5-20020a05620a014500b0076ee8583511mr5811qkn.6.1693508415571;
Thu, 31 Aug 2023 12:00:15 -0700 (PDT)
X-Received: by 2002:a17:902:f542:b0:1b5:2871:cd1 with SMTP id
h2-20020a170902f54200b001b528710cd1mr166838plf.0.1693508415198; Thu, 31 Aug
2023 12:00:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Thu, 31 Aug 2023 12:00:14 -0700 (PDT)
In-Reply-To: <de447301-3de7-4890-93ab-99e36c44db66n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2.103.50.180; posting-account=eAOrwQkAAABheFES5y-02sBOFdTlBRio
NNTP-Posting-Host: 2.103.50.180
References: <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com> <de447301-3de7-4890-93ab-99e36c44db66n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e39d0ecf-fa9e-4210-9d1d-3cd9a96ac2cen@googlegroups.com>
Subject: Re: Markdown to HTML in Forth
From: jpitaske@gmail.com (Jurgen Pitaske)
Injection-Date: Thu, 31 Aug 2023 19:00:15 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1969
 by: Jurgen Pitaske - Thu, 31 Aug 2023 19:00 UTC

On Thursday, 31 August 2023 at 19:24:40 UTC+1, Marcel Hendrix wrote:
> On Thursday, August 31, 2023 at 4:42:41 PM UTC+2, Brad Eckert wrote:
> > Hi All,
> >
> > I'm pretty sure HTML has been generated by Forth documentation tools before (like MPE's DocGen), but is there any public code for processing Markdown?
> >
> > I want a tool that translates a wiki-like syntax to HTML page(s). I will probably end up writing one, but I would like to see what's out there to get some ideas.
> FFL, e.g., XIS and XOS ?
>
> -marcel

I am amazed, that FORTH keeps out of the world how it works.
But it is better that there are about 100 personal Forths
which do not keep interested what the world needs ...

Re: Markdown to HTML in Forth

<14a909c2-0548-44bb-b15a-e1ffdc047be5n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24490&group=comp.lang.forth#24490

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ad4:58ce:0:b0:635:49d7:544f with SMTP id dh14-20020ad458ce000000b0063549d7544fmr9430qvb.4.1693518070923;
Thu, 31 Aug 2023 14:41:10 -0700 (PDT)
X-Received: by 2002:a17:902:c70b:b0:1c2:584:51ce with SMTP id
p11-20020a170902c70b00b001c2058451cemr257606plp.7.1693518070600; Thu, 31 Aug
2023 14:41:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Thu, 31 Aug 2023 14:41:09 -0700 (PDT)
In-Reply-To: <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.174.47.232; posting-account=Ebqe4AoAAABfjCRL4ZqOHWv4jv5ZU4Cs
NNTP-Posting-Host: 77.174.47.232
References: <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <14a909c2-0548-44bb-b15a-e1ffdc047be5n@googlegroups.com>
Subject: Re: Markdown to HTML in Forth
From: the.beez.speaks@gmail.com (Hans Bezemer)
Injection-Date: Thu, 31 Aug 2023 21:41:10 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 20
 by: Hans Bezemer - Thu, 31 Aug 2023 21:41 UTC

On Thursday, August 31, 2023 at 4:42:41 PM UTC+2, Brad Eckert wrote:
> Hi All,
>
> I'm pretty sure HTML has been generated by Forth documentation tools before (like MPE's DocGen), but is there any public code for processing Markdown?
>
> I want a tool that translates a wiki-like syntax to HTML page(s). I will probably end up writing one, but I would like to see what's out there to get some ideas.

I made a tool that converts tables to XLS, FODS, HTML, JSON, KSP, Wiki and a couple of more - and I made a few libs that write RTF, LaTeX and HTML within Forth, but never markup to HTML. Basic stuff couldn'tbe that hard with those libs, though.

Analyse the start of a line, set a variable and dispatch. BTW, the HTML lib supports style sheets as well.

Hans Bezemer

Re: Markdown to HTML in Forth

<ucrpju$3l895$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24491&group=comp.lang.forth#24491

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: clf@8th-dev.com (Ron AARON)
Newsgroups: comp.lang.forth
Subject: Re: Markdown to HTML in Forth
Date: Fri, 1 Sep 2023 07:34:06 +0300
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <ucrpju$3l895$1@dont-email.me>
References: <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>
<14a909c2-0548-44bb-b15a-e1ffdc047be5n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 1 Sep 2023 04:34:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="56327aac44d509f3c77d7723c0fdb87e";
logging-data="3842341"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/vY/EhITdZ/yVJhAk+g6Ax"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:+A3lqElirPnqDGugP9ZgrQ5HEm0=
In-Reply-To: <14a909c2-0548-44bb-b15a-e1ffdc047be5n@googlegroups.com>
Content-Language: en-US, he
 by: Ron AARON - Fri, 1 Sep 2023 04:34 UTC

On 01/09/2023 0:41, Hans Bezemer wrote:
> On Thursday, August 31, 2023 at 4:42:41 PM UTC+2, Brad Eckert wrote:
>> Hi All,
>>
>> I'm pretty sure HTML has been generated by Forth documentation tools before (like MPE's DocGen), but is there any public code for processing Markdown?
>>
>> I want a tool that translates a wiki-like syntax to HTML page(s). I will probably end up writing one, but I would like to see what's out there to get some ideas.
>
> I made a tool that converts tables to XLS, FODS, HTML, JSON, KSP, Wiki and a couple of more - and I made a few libs that write RTF, LaTeX and HTML within Forth, but never markup to HTML. Basic stuff couldn'tbe that hard with those libs, though.
>
> Analyse the start of a line, set a variable and dispatch. BTW, the HTML lib supports style sheets as well.
>
> Hans Bezemer

I was going to reply that 8th has a built-in Markdown parser and that I
use it to produce the HTML (and PDF) documentation, but the OP wants
public code.

OP: take a look at the "md4c" library, which is what 8th uses internally
for Markdown processing.

Re: Markdown to HTML in Forth

<5001dcad-5033-4d57-b1bc-d4a7cf3a1892n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24493&group=comp.lang.forth#24493

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:1aa2:b0:411:fca1:76a with SMTP id s34-20020a05622a1aa200b00411fca1076amr70411qtc.10.1693596192883;
Fri, 01 Sep 2023 12:23:12 -0700 (PDT)
X-Received: by 2002:a05:620a:405:b0:76f:17db:6fc5 with SMTP id
5-20020a05620a040500b0076f17db6fc5mr87281qkp.10.1693596192638; Fri, 01 Sep
2023 12:23:12 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Fri, 1 Sep 2023 12:23:12 -0700 (PDT)
In-Reply-To: <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:3f7a:20d0:fc62:518b:683:1a2e;
posting-account=V5nGoQoAAAC_P2U0qnxm2kC0s1jNJXJa
NNTP-Posting-Host: 2600:1700:3f7a:20d0:fc62:518b:683:1a2e
References: <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5001dcad-5033-4d57-b1bc-d4a7cf3a1892n@googlegroups.com>
Subject: Re: Markdown to HTML in Forth
From: sdwjack69@gmail.com (S Jack)
Injection-Date: Fri, 01 Sep 2023 19:23:12 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: S Jack - Fri, 1 Sep 2023 19:23 UTC

On Thursday, August 31, 2023 at 9:42:41 AM UTC-5, Brad Eckert wrote:
> Hi All,
>
> I'm pretty sure HTML has been generated by Forth documentation tools before (like MPE's DocGen), but is there any public code for processing Markdown?
>
> I want a tool that translates a wiki-like syntax to HTML page(s). I will probably end up writing one, but I would like to see what's out there to get some ideas.

The only tool needed for HTML and Markdown: plain text editor
--
me

Re: Markdown to HTML in Forth

<nnd$6a73b86c$4738ae39@da8b7da4b4dc6b57>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24494&group=comp.lang.forth#24494

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
Subject: Re: Markdown to HTML in Forth
References: <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: albert@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$6a73b86c$4738ae39@da8b7da4b4dc6b57>
Organization: KPN B.V.
Date: Sat, 02 Sep 2023 10:59:26 +0200
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe004.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 20
Injection-Date: Sat, 02 Sep 2023 10:59:26 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1473
 by: none - Sat, 2 Sep 2023 08:59 UTC

In article <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>,
Brad Eckert <hwfwguy@gmail.com> wrote:
>Hi All,
>
>I'm pretty sure HTML has been generated by Forth documentation tools
>before (like MPE's DocGen), but is there any public code for processing
>Markdown?
>
>I want a tool that translates a wiki-like syntax to HTML page(s). I will
>probably end up writing one, but I would like to see what's out there to
>get some ideas.

I have written a kind of regular expression transformation.
Each time a problem of this kind comes up, I use this.
--
Don't praise the day before the evening. One swallow doesn't make spring.
You must not say "hey" before you have crossed the bridge. Don't sell the
hide of the bear until you shot it. Better one bird in the hand than ten in
the air. First gain is a cat spinning. - the Wise from Antrim -

Re: Markdown to HTML in Forth

<20230902101919.4925edce49925ca5cb631c70@127.0.0.1>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24495&group=comp.lang.forth#24495

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: admin@127.0.0.1 (Kerr-Mudd, John)
Newsgroups: comp.lang.forth
Subject: Re: Markdown to HTML in Forth
Date: Sat, 2 Sep 2023 10:19:19 +0100
Organization: Dis
Lines: 17
Message-ID: <20230902101919.4925edce49925ca5cb631c70@127.0.0.1>
References: <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>
<5001dcad-5033-4d57-b1bc-d4a7cf3a1892n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="4bac3d31e2d4ca286dbad7a709d1ec41";
logging-data="391031"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/j3BCpVwEyi5J77mELDgn7V/n36cMs7LU="
Cancel-Lock: sha1:1gufcLxaipcRxKF+0eVg6CSfQgU=
;X-no-Archive: Maybe
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
GNU: Terry Pratchett
 by: Kerr-Mudd, John - Sat, 2 Sep 2023 09:19 UTC

On Fri, 1 Sep 2023 12:23:12 -0700 (PDT)
S Jack <sdwjack69@gmail.com> wrote:

> On Thursday, August 31, 2023 at 9:42:41 AM UTC-5, Brad Eckert wrote:
> > Hi All,
> >
> > I'm pretty sure HTML has been generated by Forth documentation tools before (like MPE's DocGen), but is there any public code for processing Markdown?
> >
> > I want a tool that translates a wiki-like syntax to HTML page(s). I will probably end up writing one, but I would like to see what's out there to get some ideas.
>
> The only tool needed for HTML and Markdown: plain text editor

Tried looking at a modern webpage? It's a long way from just simple
Markup tags now.

--
Bah, and indeed Humbug.

Re: Markdown to HTML in Forth

<c8bcf21c-4142-4288-8b41-c30f00ca6757n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24496&group=comp.lang.forth#24496

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:8ec4:b0:76e:e858:3505 with SMTP id rg4-20020a05620a8ec400b0076ee8583505mr97896qkn.6.1693650935315;
Sat, 02 Sep 2023 03:35:35 -0700 (PDT)
X-Received: by 2002:a17:902:ecc5:b0:1bb:c7c6:3472 with SMTP id
a5-20020a170902ecc500b001bbc7c63472mr1691977plh.13.1693650934973; Sat, 02 Sep
2023 03:35:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sat, 2 Sep 2023 03:35:34 -0700 (PDT)
In-Reply-To: <20230902101919.4925edce49925ca5cb631c70@127.0.0.1>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:f7:1f00:eb61:d052:43ee:4e4a:ebda;
posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 2003:f7:1f00:eb61:d052:43ee:4e4a:ebda
References: <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>
<5001dcad-5033-4d57-b1bc-d4a7cf3a1892n@googlegroups.com> <20230902101919.4925edce49925ca5cb631c70@127.0.0.1>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c8bcf21c-4142-4288-8b41-c30f00ca6757n@googlegroups.com>
Subject: Re: Markdown to HTML in Forth
From: minforth@arcor.de (minforth)
Injection-Date: Sat, 02 Sep 2023 10:35:35 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: minforth - Sat, 2 Sep 2023 10:35 UTC

Kerr-Mudd, John schrieb am Samstag, 2. September 2023 um 11:19:21 UTC+2:
> On Fri, 1 Sep 2023 12:23:12 -0700 (PDT)
> S Jack <sdwj...@gmail.com> wrote:
>
> > On Thursday, August 31, 2023 at 9:42:41 AM UTC-5, Brad Eckert wrote:
> > > Hi All,
> > >
> > > I'm pretty sure HTML has been generated by Forth documentation tools before (like MPE's DocGen), but is there any public code for processing Markdown?
> > >
> > > I want a tool that translates a wiki-like syntax to HTML page(s). I will probably end up writing one, but I would like to see what's out there to get some ideas.
> >
> > The only tool needed for HTML and Markdown: plain text editor
> Tried looking at a modern webpage? It's a long way from just simple
> Markup tags now.

Add to this that wiki markup has a lot more to offer than HTML.
See for yourself:
https://learn.microsoft.com/en-us/azure/devops/project/wiki/wiki-markdown-guidance?view=azure-devops

Re: Markdown to HTML in Forth

<ucvk46$f6df$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24497&group=comp.lang.forth#24497

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: stephen@vfxforth.com (Stephen Pelc)
Newsgroups: comp.lang.forth
Subject: Re: Markdown to HTML in Forth
Date: Sat, 2 Sep 2023 15:24:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <ucvk46$f6df$1@dont-email.me>
References: <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 2 Sep 2023 15:24:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8b9719ca0ef97e808759ef2b7420b54e";
logging-data="498095"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Rzd45cc/E/JyhNTc+6lTP"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:JLjFntCN1z91wD+v1UXmgRcm1SI=
X-Usenapp: v1.27.1/l - Full License
 by: Stephen Pelc - Sat, 2 Sep 2023 15:24 UTC

On 31 Aug 2023 at 16:42:38 CEST, "Brad Eckert" <hwfwguy@gmail.com> wrote:

> I'm pretty sure HTML has been generated by Forth documentation tools before
> (like MPE's DocGen), but is there any public code for processing Markdown?

MPE's DocGen now supports Markdown.

Stephen

--
Stephen Pelc, stephen@vfxforth.com
MicroProcessor Engineering, Ltd. - More Real, Less Time
133 Hill Lane, Southampton SO15 5AF, England
tel: +44 (0)78 0390 3612, +34 649 662 974
http://www.mpeforth.com - free VFX Forth downloads

Re: Markdown to HTML in Forth

<02088c26-be7b-4d98-860e-816229319bfcn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24498&group=comp.lang.forth#24498

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ad4:4b26:0:b0:649:463d:bf40 with SMTP id s6-20020ad44b26000000b00649463dbf40mr205391qvw.1.1693674156310;
Sat, 02 Sep 2023 10:02:36 -0700 (PDT)
X-Received: by 2002:a63:6fc9:0:b0:56b:dc28:69a8 with SMTP id
k192-20020a636fc9000000b0056bdc2869a8mr1148788pgc.0.1693674155796; Sat, 02
Sep 2023 10:02:35 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sat, 2 Sep 2023 10:02:35 -0700 (PDT)
In-Reply-To: <c8bcf21c-4142-4288-8b41-c30f00ca6757n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=72.217.63.66; posting-account=6GCGIQoAAAAyO8IjR_VTwqiqLwx0Q_G8
NNTP-Posting-Host: 72.217.63.66
References: <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>
<5001dcad-5033-4d57-b1bc-d4a7cf3a1892n@googlegroups.com> <20230902101919.4925edce49925ca5cb631c70@127.0.0.1>
<c8bcf21c-4142-4288-8b41-c30f00ca6757n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <02088c26-be7b-4d98-860e-816229319bfcn@googlegroups.com>
Subject: Re: Markdown to HTML in Forth
From: hwfwguy@gmail.com (Brad Eckert)
Injection-Date: Sat, 02 Sep 2023 17:02:36 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2841
 by: Brad Eckert - Sat, 2 Sep 2023 17:02 UTC

On Saturday, September 2, 2023 at 3:35:36 AM UTC-7, minforth wrote:
> Kerr-Mudd, John schrieb am Samstag, 2. September 2023 um 11:19:21 UTC+2:
> > On Fri, 1 Sep 2023 12:23:12 -0700 (PDT)
> > S Jack <sdwj...@gmail.com> wrote:
> >
> > > On Thursday, August 31, 2023 at 9:42:41 AM UTC-5, Brad Eckert wrote:
> > > > Hi All,
> > > >
> > > > I'm pretty sure HTML has been generated by Forth documentation tools before (like MPE's DocGen), but is there any public code for processing Markdown?
> > > >
> > > > I want a tool that translates a wiki-like syntax to HTML page(s). I will probably end up writing one, but I would like to see what's out there to get some ideas.
> > >
> > > The only tool needed for HTML and Markdown: plain text editor
> > Tried looking at a modern webpage? It's a long way from just simple
> > Markup tags now.
> Add to this that wiki markup has a lot more to offer than HTML.
> See for yourself:
> https://learn.microsoft.com/en-us/azure/devops/project/wiki/wiki-markdown-guidance?view=azure-devops

It just keeps getting better. Mermaid syntax. Since they will keep adding stuff, I suppose trying to keep up would be a fool's errand. This fool has other things to do.

It seems that my requirement is more along the lines of parsing anchor tags out of either Markdown or HTML to populate a data structure and then generating an HTML representation of that complete with links.

Re: Markdown to HTML in Forth

<b55ba8aa-3699-4413-82d2-46dcbf84102en@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24499&group=comp.lang.forth#24499

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ad4:4baf:0:b0:64a:64a3:d018 with SMTP id i15-20020ad44baf000000b0064a64a3d018mr144563qvw.8.1693682681523;
Sat, 02 Sep 2023 12:24:41 -0700 (PDT)
X-Received: by 2002:a63:221f:0:b0:570:26c:5e05 with SMTP id
i31-20020a63221f000000b00570026c5e05mr1193547pgi.2.1693682681175; Sat, 02 Sep
2023 12:24:41 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sat, 2 Sep 2023 12:24:40 -0700 (PDT)
In-Reply-To: <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=72.19.161.214; posting-account=gOJPwAkAAAASIU4gHD9_qGU8MyZsfs-Q
NNTP-Posting-Host: 72.19.161.214
References: <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b55ba8aa-3699-4413-82d2-46dcbf84102en@googlegroups.com>
Subject: Re: Markdown to HTML in Forth
From: bob@cosy.com (Bob Armstrong)
Injection-Date: Sat, 02 Sep 2023 19:24:41 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2684
 by: Bob Armstrong - Sat, 2 Sep 2023 19:24 UTC

https://cosy.com/ , evolving from APL & K , has strong vocabulary for any such transliterations . For instance , I flesh out naked URLs in my https://cosy.com/DailyBlog.html with this word :

: Blog>HTML ( text -- html )
lfVM s" <br>" $ ' cL 'R lfMV ` http tokcut >a>
1 _cut { .+ wsf? 0cut } 'm flip >a> dsc >a
s/" <a target=\"_blank\" href=\"" a@ ' cL 'R ` "> ' cL 'L a> ' cL 'd ` </a> ' cL 'L
a> 1th ,L flip ,/ a> dsc $ cL lfMV ;

One particularly useful word for such things is :

: braket ( str strs -- str ) 2p> 0 _at swap cL R@ 1 _at cL 2P> ;
| Prefixes and suffixes str with 2 item strs . Examples :
| s" 2 item" s" <i>" s" </i>" ,L braket
| s" <i>2 item</i>"
| s" /4thCoSy/CoSy/Furniture.f " s" | " enc braket
| s" | /4thCoSy/CoSy/Furniture.f | "
| i( 5 6 5 )i 4 _i braket
| 4 5 6 5 4
)

A similar sort of task is converting account downloads to CoSy lists .
: csv>lst ( csv d0,d1 -- lst ) 2p> dsc VM dae R@ 1 _at ['] VM 'L 2P> ;
| Splits string first on d0 then each on d1 .

| --

On Thursday, August 31, 2023 at 8:42:41 AM UTC-6, Brad Eckert wrote:
> Hi All,
>
> I'm pretty sure HTML has been generated by Forth documentation tools before (like MPE's DocGen), but is there any public code for processing Markdown?
>
> I want a tool that translates a wiki-like syntax to HTML page(s). I will probably end up writing one, but I would like to see what's out there to get some ideas.

Re: Markdown to HTML in Forth

<96d940ee-f7f9-4c52-95a6-43375e310692n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24501&group=comp.lang.forth#24501

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:7103:b0:412:2b59:dc10 with SMTP id jb3-20020a05622a710300b004122b59dc10mr216840qtb.1.1693695629195;
Sat, 02 Sep 2023 16:00:29 -0700 (PDT)
X-Received: by 2002:a05:6a00:1a8f:b0:68b:c408:a2a4 with SMTP id
e15-20020a056a001a8f00b0068bc408a2a4mr2401419pfv.6.1693695628606; Sat, 02 Sep
2023 16:00:28 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sat, 2 Sep 2023 16:00:27 -0700 (PDT)
In-Reply-To: <02088c26-be7b-4d98-860e-816229319bfcn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:3f7a:20d0:565:34a1:3c9f:7fde;
posting-account=V5nGoQoAAAC_P2U0qnxm2kC0s1jNJXJa
NNTP-Posting-Host: 2600:1700:3f7a:20d0:565:34a1:3c9f:7fde
References: <c1a48a52-abda-4c61-a10e-8579d2e4504en@googlegroups.com>
<5001dcad-5033-4d57-b1bc-d4a7cf3a1892n@googlegroups.com> <20230902101919.4925edce49925ca5cb631c70@127.0.0.1>
<c8bcf21c-4142-4288-8b41-c30f00ca6757n@googlegroups.com> <02088c26-be7b-4d98-860e-816229319bfcn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <96d940ee-f7f9-4c52-95a6-43375e310692n@googlegroups.com>
Subject: Re: Markdown to HTML in Forth
From: sdwjack69@gmail.com (S Jack)
Injection-Date: Sat, 02 Sep 2023 23:00:29 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: S Jack - Sat, 2 Sep 2023 23:00 UTC

On Saturday, September 2, 2023 at 12:02:37 PM UTC-5, Brad Eckert wrote:
> On Saturday, September 2, 2023 at 3:35:36 AM UTC-7, minforth wrote:
> > Kerr-Mudd, John schrieb am Samstag, 2. September 2023 um 11:19:21 UTC+2:
> > > On Fri, 1 Sep 2023 12:23:12 -0700 (PDT)
> > > S Jack <sdwj...@gmail.com> wrote:
> > >
> > > > On Thursday, August 31, 2023 at 9:42:41 AM UTC-5, Brad Eckert wrote:
> It just keeps getting better. Mermaid syntax. Since they will keep adding stuff, I suppose trying to keep up would be a fool's errand. This fool has other things to do.

What was nice in the old days, Firefox provided a default user style
sheet. Set it up the way you want things. Strip out the bs in the
marked up document copy content into a template using the default
css and have something useful. Don't expect to do that these days.

If the web page is composed mainly of markup, then usually stripping
out tags is no big deal using a Bash script and the *nix text
utilities. But some authors will screw up their html so bad that it's
not worth it. Also browsers may have options to strip the tags for
you, but the ones I've tried don't work all that well; much hand
tweaking still needed. But worst, these days many web pages are made
up of very little markup and use JavaScript to generate most of the
content. Don't be surprised to see a page with no content and showing
only a single tag <KOO />. Strip it and have nothing.
--
me

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor