Re: Markdown ultra-lite

2017-11-10 Thread Kay C Lan via use-livecode
On Tue, Nov 7, 2017 at 2:20 AM, Trevor DeVore via use-livecode wrote: > > Here is some old code I used in the past which was modified from some other > converted I had written for Textile and BBCode. Trevor, thank you very much. >If I were writing the > converter today I would use the styledText

Re: Markdown ultra-lite

2017-11-06 Thread Alex Tweedly via use-livecode
Yeah, that's a really good suggestion. I had thought of it - but the purist in me was reluctant to add a "magic character sequence" without any escape mechanism. And the limitation of "no whitespace" made it tricky to limit the context of the replace. However - the fact that you made the sugg

Re: Markdown ultra-lite

2017-11-06 Thread Trevor DeVore via use-livecode
On Sun, Nov 5, 2017 at 2:40 PM, Kay C Lan via use-livecode < use-livecode@lists.runrev.com> wrote: > Nor was I aware that mergMardownToXHMTL existed, so thank you for > raising this thread so James could enlighten us. Now all I need is > someone to tell me there is similar function that converts H

Re: Markdown ultra-lite

2017-11-06 Thread James At The Hale via use-livecode
Alex wrote > a trailing "*" in a URL would > be converted to make the link open in a new browser tab/window - by > changing it to? TARGET="_blank" Couldn’t you simply replace your suitably chosen trailing characters with TARGET="_blank" after using the function? (I mention characters as a sin

Re: Markdown ultra-lite

2017-11-05 Thread Alex Tweedly via use-livecode
Well, just for completeness, I'll report that I have decided to use my own simple-minded version rather than mergMarkdownToXHTML. I had added one tiny convenience feature (a trailing "*" in a URL would be converted to make the link open in a new browser tab/window - by changing it to  TARGET="

Re: Markdown ultra-lite

2017-11-05 Thread Kay C Lan via use-livecode
On Sun, Nov 5, 2017 at 1:39 AM, Alex Tweedly via use-livecode wrote: > > (*) I read about Markdown; it was interesting; I learned something - no > hours were truly "wasted" > Nor was I aware that mergMardownToXHMTL existed, so thank you for raising this thread so James could enlighten us. Now all

Re: Markdown ultra-lite

2017-11-04 Thread Alex Tweedly via use-livecode
On 04/11/2017 13:21, James At The Hale via use-livecode wrote: You are aware of mergMarkdownToXHTML function from the mergmarkdown library, no? In a word: "No." :-( In a sentence:  No, of course not; if I had known Monte had already done this in a thorough way, I wouldn't have wasted (*) a co

Markdown ultra-lite

2017-11-04 Thread James At The Hale via use-livecode
You are aware of mergMarkdownToXHTML function from the mergmarkdown library, no? When I was writing the code to format the description part of the docs (for the Dash docset stack) I was reminded by Monte (I think) of this. It works really well. James ___

Markdown ultra-lite

2017-11-03 Thread Alex Tweedly via use-livecode
I wanted to find a LC implementation of markdown, so I could easily use markdown files on a website, and have them be converted to html for output. I really wanted it completely in LC, so I could just include it without worrying about installing, or checking for, any other languages, scripts, e