[NTG-context] Markdown to HTML cross-references

2023-11-21 Thread Thangalin
Hi list, I'm looking to implement a consistent syntax for cross-references in KeenWrite and am wondering what you think would make the most sense for translating into ConTeXt commands. First, some background (the first two give an overview, the others are cross-reference

Re: [NTG-context] Markdown module in LMTX

2021-03-28 Thread Christoph Reller
Hi all, In recent versions of ConTeXt LMTX the markdown module seems to work again. I just copied the files m-markdown.mkiv and m-markdown.loa from a MKVI version into the directory tex\texmf-modules\m-markdown of the LMTX version. I don't believe that this is officially supported and I did no

Re: [NTG-context] Markdown module in LMTX

2021-01-29 Thread J Huisman
Hi all, I can confirm that this problem has not yet been resolved? Any idea when it might happen? Cheers, Jelle On Mon, Jan 11, 2021 at 5:48 AM Christoph Reller wrote: > > Hi, > > In recent versions of ConTeXt LMTX, the builtin markdown module is missing. > (Files m-markdown.[lua|mkiv]) >

[NTG-context] Markdown module in LMTX

2021-01-10 Thread Christoph Reller
Hi, In recent versions of ConTeXt LMTX, the builtin markdown module is missing. (Files m-markdown.[lua|mkiv]) Just copying this module from an earlier version shows that they don't work anymore. MWE: ConTeXt file: -- 8< -- \usemodule[markdown] \starttext

Re: [NTG-context] markdown module vs pandoc

2019-02-24 Thread Saša Janiška
Pablo Rodriguez writes: > the code in my private repository is unnecessarily complex for too > narrow cases. OK. > > I think that the most valuable feature of environment itself (the file > 'pandoc-xhtml.tex') is the practical introduction to “Dealing with XML > in ConTeXt”

Re: [NTG-context] markdown module vs pandoc

2019-02-22 Thread Pablo Rodriguez
On 2/21/19 9:59 PM, Gour wrote: > On Thu, 21 Feb 2019 18:50:41 +0100 Pablo Rodriguez wrote: > >> I’m still behind the environment itself, although I realized that >> these may not be relevant to everybody. I store the new commits in a >> private repository. > > Aha...I believe I might be

Re: [NTG-context] markdown module vs pandoc

2019-02-21 Thread Gour
On Thu, 21 Feb 2019 18:50:41 +0100 Pablo Rodriguez wrote: > sorry for my delayed reply. No problem - there is no rush here. ;) > I’m still behind the environment itself, although I realized that > these may not be relevant to everybody. I store the new commits in a > private repository.

Re: [NTG-context] markdown module vs pandoc

2019-02-21 Thread Pablo Rodriguez
On 2/19/19 2:22 PM, Gour wrote: > On Mon, 18 Feb 2019 17:08:44 +0100 Pablo Rodriguez wrote: > [...] >> I convert Markdown to XHTML and then I compile the XML sources with >> ConTeXt. > > I've tried it and it works nicely. The possibility to have one-source-does-all > is tempting. ;) > > Now I

Re: [NTG-context] markdown module vs pandoc

2019-02-19 Thread Gour
On Mon, 18 Feb 2019 17:08:44 +0100 Pablo Rodriguez wrote: Hello Pablo, > I convert Markdown to XHTML and then I compile the XML sources with > ConTeXt. I've tried it and it works nicely. The possibility to have one-source-does-all is tempting. ;) Now I wonder if you're still behind the tool

Re: [NTG-context] markdown module vs pandoc

2019-02-18 Thread Alan Braslau
On Mon, 18 Feb 2019 18:47:49 +0100 Gour wrote: > > I use TikZ when I need some ready-made stuff with possibly some fancy > > shading patterns (or when I would pass the images to LaTeX users). In > > those cases you might be able to achive the same in a lot less lines > > of code, but you usually

Re: [NTG-context] markdown module vs pandoc

2019-02-18 Thread Aditya Mahajan
On Sun, 17 Feb 2019, Gour wrote: On Fri, 15 Feb 2019 12:34:33 -0500 (EST) Aditya Mahajan wrote: For simple documents, I use something like this (untested): It does not work - maybe I have to install stand-alone version of ConTeXt, but I got an idea. Try this:

Re: [NTG-context] markdown module vs pandoc

2019-02-18 Thread Gour
On Mon, 18 Feb 2019 17:40:44 +0100 Mojca Miklavec wrote: > If I was you, I would use AsciiDoc, convert it to DocBook and process > the XML. (There is some simple proof-of-concept docbook processing > already written.) Uff, even when considering to just use AsciiDoc, I was always trying to stay

Re: [NTG-context] markdown module vs pandoc

2019-02-18 Thread Gour
On Mon, 18 Feb 2019 17:08:44 +0100 Pablo Rodriguez wrote: > I convert Markdown to XHTML and then I compile the XML sources with > ConTeXt. > > I describe the method at http://www.from-pandoc-to-context.tk/. > > Just in case it might help, Thank you, I'll explore that option... Sincerely,

Re: [NTG-context] markdown module vs pandoc

2019-02-18 Thread Mojca Miklavec
On Thu, 14 Feb 2019 at 23:01, Gour wrote: > > I'm interested for using markdown markup and typeset such documents via > ConTeXt, but wonder whether it is recommended to use Markdown module or do > markdown --> ConTeXt via Pandoc? If I was you, I would use AsciiDoc, convert it to DocBook and

Re: [NTG-context] markdown module vs pandoc

2019-02-18 Thread Pablo Rodriguez
On 2/14/19 11:00 PM, Gour wrote: > Hello, > > I'm interested for using markdown markup and typeset such documents via > ConTeXt, but wonder whether it is recommended to use Markdown module or do > markdown --> ConTeXt via Pandoc? Hi Gour, I convert Markdown to XHTML and then I compile the XML

Re: [NTG-context] markdown module vs pandoc

2019-02-16 Thread Gour
On Fri, 15 Feb 2019 12:34:33 -0500 (EST) Aditya Mahajan wrote: > For simple documents, I use something like this (untested): It does not work - maybe I have to install stand-alone version of ConTeXt, but I got an idea. > For more complicated documents (where I need both TeX and HTML > output),

Re: [NTG-context] markdown module vs pandoc

2019-02-15 Thread Aditya Mahajan
On Fri, 15 Feb 2019, Gour wrote: On Fri, 15 Feb 2019 06:11:32 -0500 (EST) Aditya Mahajan wrote: For obvious reasons, the built in markdown module is faster than calling pandoc but I prefer using pandoc rather than the markdown module for two reasons. First, pandoc provides many extensions to

Re: [NTG-context] markdown module vs pandoc

2019-02-15 Thread Gour
On Fri, 15 Feb 2019 06:11:32 -0500 (EST) Aditya Mahajan wrote: > For obvious reasons, the built in markdown module is faster than > calling pandoc but I prefer using pandoc rather than the markdown > module for two reasons. First, pandoc provides many extensions to the > basic markdown syntax

Re: [NTG-context] markdown module vs pandoc

2019-02-15 Thread Aditya Mahajan
On Thu, 14 Feb 2019, Gour wrote: I'm interested for using markdown markup and typeset such documents via ConTeXt, but wonder whether it is recommended to use Markdown module or do markdown --> ConTeXt via Pandoc? For obvious reasons, the built in markdown module is faster than calling pandoc

[NTG-context] markdown module vs pandoc

2019-02-14 Thread Gour
Hello, I'm interested for using markdown markup and typeset such documents via ConTeXt, but wonder whether it is recommended to use Markdown module or do markdown --> ConTeXt via Pandoc? Sincerely, Gour -- Thus the wise living entity's pure consciousness becomes covered by his eternal enemy

Re: [NTG-context] markdown: referencing tables

2013-04-10 Thread Xenia
On 10.04.2013 01:02, Hans Hagen wrote: On 4/9/2013 9:29 PM, Xenia wrote: Dear context list, I love simple tables in markdown like this one \startmarkdown Right Left Center Default --- -- -- --- 12 121212 123

Re: [NTG-context] markdown: referencing tables

2013-04-10 Thread Hans Hagen
On 4/10/2013 2:44 PM, Xenia wrote: On 10.04.2013 01:02, Hans Hagen wrote: On 4/9/2013 9:29 PM, Xenia wrote: Dear context list, I love simple tables in markdown like this one \startmarkdown Right Left Center Default --- -- -- --- 12 12

Re: [NTG-context] markdown: referencing tables

2013-04-10 Thread Marco Patzer
On 2013–04–09 Xenia wrote: \startmarkdown Right Left Center Default --- -- -- --- 12 121212 123 123 123 123 1 1 1 1 Table: Demonstration of simple table syntax.

Re: [NTG-context] markdown: referencing tables

2013-04-10 Thread Xenia
On 10.04.2013 15:10, Hans Hagen wrote: On 4/10/2013 2:44 PM, Xenia wrote: On 10.04.2013 01:02, Hans Hagen wrote: On 4/9/2013 9:29 PM, Xenia wrote: Dear context list, I love simple tables in markdown like this one \startmarkdown Right Left Center Default --- --

[NTG-context] markdown: referencing tables

2013-04-09 Thread Xenia
Dear context list, I love simple tables in markdown like this one \startmarkdown Right Left Center Default --- -- -- --- 12 121212 123 123 123 123 1 1 1 1 Table:

Re: [NTG-context] markdown: referencing tables

2013-04-09 Thread Hans Hagen
On 4/9/2013 9:29 PM, Xenia wrote: Dear context list, I love simple tables in markdown like this one \startmarkdown Right Left Center Default --- -- -- --- 12 121212 123 123 123 123 1 1

Re: [NTG-context] Markdown subitems fail

2012-05-11 Thread Marco
On 2012-05-10 Hans Hagen pra...@wxs.nl wrote: I assume the markdown module uses a custom lua parser internally. indeed, and I need to update it (some ay) There's no need to invest time on that issue. I just discovered the module and gave it a shot. Anyhow, I use pandoc for the conversion

[NTG-context] Markdown subitems fail

2012-05-10 Thread Marco
Subitems in markdown behave buggy. Example: \usemodule [markdown] \starttext \startmarkdown - Some item - Another item - Subitem one - Subitem two \stopmarkdown \stoptext Result: • Some item • Another item startmarkdownitemize[packed] startitem Subitem one stopitem

Re: [NTG-context] Markdown subitems fail

2012-05-10 Thread Hans Hagen
On 10-5-2012 20:56, Marco wrote: Subitems in markdown behave buggy. Example: \usemodule [markdown] \starttext \startmarkdown - Some item - Another item - Subitem one - Subitem two \stopmarkdown \stoptext Result: • Some item • Another item startmarkdownitemize[packed] startitem

[NTG-context] markdown

2011-07-26 Thread Hans Hagen
Hi, As it happened that I needed to print a readme.markdown file, the new beta now has a new extra: context --extra=markdown readme.markdown For some options see: context --extra=markdown --help It will never look real good, but it's better than printing verbatim. Hans

Re: [NTG-context] markdown

2011-07-26 Thread Vyatcheslav Yatskovsky
I'm curious, what is markdown and why one ever needs to print it? ;) -- Best Regards, Vyatcheslav Yatskovsky ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] markdown

2011-07-26 Thread Hans Hagen
On 26-7-2011 2:37, Vyatcheslav Yatskovsky wrote: I'm curious, what is markdown and why one ever needs to print it? ;) Some kind of simple ascii tagging. As it concerned an api specification I wanted to have something readable instead of staring at an text file. Hans

Re: [NTG-context] markdown

2011-07-26 Thread Paul Menzel
Am Dienstag, den 26.07.2011, 14:43 +0200 schrieb Hans Hagen: On 26-7-2011 2:37, Vyatcheslav Yatskovsky wrote: I'm curious, what is markdown and why one ever needs to print it? ;) Some kind of simple ascii tagging. Markdown is also referred to as a markup language. There is also a Wikipedia

Re: [NTG-context] markdown

2011-07-22 Thread Wolfgang Schuster
Am 21.07.2011 um 22:58 schrieb Hans Hagen: On 21-7-2011 9:31, Wolfgang Schuster wrote: %\unexpanded\def\markdownrule % {\hairline\par} \unexpanded\def\markdownrule {\markdownparameter\c!rule} or maybe better \startsetups markdown:rule \hairline \par \stopsetups

Re: [NTG-context] markdown

2011-07-21 Thread Wolfgang Schuster
Am 20.07.2011 um 14:24 schrieb Hans Hagen: On 19-7-2011 7:25, Wolfgang Schuster wrote: Can you then also add a few features: - Headings use \startstructurelevel - Paragraphs are enclosed in startparagraph/stopparagraph - emphasis and bold styles use \definehiglight command to make it

Re: [NTG-context] markdown

2011-07-21 Thread Hans Hagen
On 21-7-2011 9:31, Wolfgang Schuster wrote: %\unexpanded\def\markdownrule % {\hairline\par} \unexpanded\def\markdownrule {\markdownparameter\c!rule} or maybe better \startsetups markdown:rule \hairline \par \stopsetups \unexpanded\def\markdownrule {\directsetup{markdown:rule}}

Re: [NTG-context] markdown

2011-07-20 Thread Hans Hagen
On 19-7-2011 7:25, Wolfgang Schuster wrote: Can you then also add a few features: - Headings use \startstructurelevel - Paragraphs are enclosed in startparagraph/stopparagraph - emphasis and bold styles use \definehiglight command to make it possible to change the layout of markdown documents

Re: [NTG-context] markdown

2011-07-20 Thread John Haltiwanger
On Wed, Jul 20, 2011 at 5:24 AM, Hans Hagen pra...@wxs.nl wrote: On 19-7-2011 7:25, Wolfgang Schuster wrote: The code is derived from luamark (but a few 100% faster so I might have messed up). And of course, being the markdown evangelist, John will answer all questions. With pleasure :)

[NTG-context] markdown

2011-07-19 Thread Hans Hagen
Hi Khaled, I took a look at the lunamark code, and ran it on some (copied) sample. As it was much slower than I'd expected from lpeg I messed around a little and could bring down the runtime on the sample from 2 sec to 0.1 sec. Anyhow, there is room for improvement so I wonder If I should

Re: [NTG-context] markdown

2011-07-19 Thread John Haltiwanger
On Tue, Jul 19, 2011 at 7:05 AM, Hans Hagen pra...@wxs.nl wrote: Hi Khaled, I took a look at the lunamark code, and ran it on some (copied) sample. As it was much slower than I'd expected from lpeg I messed around a little and could bring down the runtime on the sample from 2 sec to 0.1 sec.

Re: [NTG-context] markdown

2011-07-19 Thread Khaled Hosny
On Tue, Jul 19, 2011 at 04:05:13PM +0200, Hans Hagen wrote: Hi Khaled, I took a look at the lunamark code, and ran it on some (copied) sample. As it was much slower than I'd expected from lpeg I messed around a little and could bring down the runtime on the sample from 2 sec to 0.1 sec.

Re: [NTG-context] markdown

2011-07-19 Thread Hans Hagen
On 19-7-2011 7:08, Khaled Hosny wrote: On Tue, Jul 19, 2011 at 04:05:13PM +0200, Hans Hagen wrote: Hi Khaled, I took a look at the lunamark code, and ran it on some (copied) sample. As it was much slower than I'd expected from lpeg I messed around a little and could bring down the runtime on

Re: [NTG-context] markdown

2011-07-19 Thread Wolfgang Schuster
Am 19.07.2011 um 19:14 schrieb Hans Hagen: On 19-7-2011 7:08, Khaled Hosny wrote: On Tue, Jul 19, 2011 at 04:05:13PM +0200, Hans Hagen wrote: Hi Khaled, I took a look at the lunamark code, and ran it on some (copied) sample. As it was much slower than I'd expected from lpeg I messed