Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-12

Markdown parser?

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys
to Leonardo M. Ramé
Leonardo M. Ramé wrote
Hi, does anyone knows if there is a Markdown parser already developed for FreePascal?.

I started a Markdown and Creole parser about a year or two ago. I'll see if I still have the code somewhere. It might be at work, which means I can only check on Monday.

Regards,   - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Graeme Geldenhuys
to Leonardo M. Ramé: Hi, does anyone knows if there is a Markdown parser already developed for FreePascal?.  …
Leonardo M. Ramé wrote
Hi, does anyone knows if there is a Markdown parser already developed for FreePascal?.

Sorry, I looked everywhere on my work system and our server. I can't seem to find my markdown parser anywhere. That'll teach me to use SCM systems more often.

I remembered I modeled the code after a very fast Java Markdown parser. The code wasn't difficult, so it should go relatively quickly to implement a Object Pascal version again.

I did a quick Google search, here is the link to the Java MarkDown parser I based my code on.

https://github.com/rjeschke/txtmark/

You can see from the notes in that URL, it passes all the MarkDown tests, and compared to other MarkDown implementation, txtmark absolutely flies!

This is what I wanted to implement with MarkDown. An alternative GUI fpdoc content editor that uses Markdown syntax.
http://www.markdownpad.com/

Regards,   - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Leonardo M. Ramé
to Graeme Geldenhuys
Show quoted text 36 lines
________________________________ From: Graeme Geldenhuys To: Leonardo M. Ramé ; FPC-Pascal users discussions Sent: Monday, December 5, 2011 8:41 AM Subject: Re: [fpc-pascal] Markdown parser? On 3 December 2011 14:46, Leonardo M. Ramé wrote: > Hi, does anyone knows if there is a Markdown parser already developed for > FreePascal?. Sorry, I looked everywhere on my work system and our server. I can't seem to find my markdown parser anywhere. That'll teach me to use SCM systems more often. I remembered I modeled the code after a very fast Java Markdown parser. The code wasn't difficult, so it should go relatively quickly to implement a Object Pascal version again. I did a quick Google search, here is the link to the Java MarkDown parser I based my code on.   https://github.com/rjeschke/txtmark/ You can see from the notes in that URL, it passes all the MarkDown tests, and compared to other MarkDown implementation, txtmark absolutely flies! This is what I wanted to implement with MarkDown. An alternative GUI fpdoc content editor that uses Markdown syntax.   http://www.markdownpad.com/ -- Regards,   - Graeme -

 
Thanks Graeme, I'll take a M. Ramé
http://leonardorame.blogspot.com

Reply by email

Graeme Geldenhuys
to Leonardo M. Ramé
Leonardo M. Ramé wrote
Thanks Graeme, I'll take a I couldn't be of more help. I don't know what you want to do

with a MarkDown parser, but I thought it worth mentioning the following. Another very nice alternative to MarkDown is AsciiDoc

http://www.methods.co.nz/asciidoc/

AsciiDoc is the closest text markup format to "plain text" - like you would use in emails or a README.txt file. As an example, all of the Git project's help is written in AsciiDoc format. Reading the "raw documentation source" of git, is a clear as reading a text email. :-)

Regards,   - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email