Support creole

mmacho's Avatar

mmacho

16 Oct, 2012 09:23 PM

Creole is an important formatting tag system (http://en.wikipedia.org/wiki/Creole_(markup)). Files ending in .creole are more and more frequent today. Its possibilities are similar to those a MMarkdown, but it seems more intuitive and, hence, easy to remember, while really powerful.

Do you have any plans to support it?

Thanks in advance, especially for your really excellent Marked.
Juan F.

  1. Support Staff 1 Posted by Brett on 16 Oct, 2012 10:00 PM

    Brett's Avatar

    Probably not directly, but you can use it right now. Just download creoleparser, unzip it and run python setup.py install from its base folder. Then you can put this into a file called marked_creole.py

     #!/usr/local/bin/python
    
     import sys
    
     from creoleparser import text2html
    
     sys.stdout.write(text2html(sys.stdin.read()))
    

    Run chmod a+x marked_creole.py and then put the path to the processor in the Custom Processor field in Marked. I tested it, it works great.

  2. 2 Posted by mmacho on 16 Oct, 2012 10:26 PM

    mmacho's Avatar

    Thanks Brett for the solution and your really fast answer. I observe two things: it is much slower, and it displays empty white renderings with some .md's If you unmark the "Custom Markdown Processor" it renders everything perfectly as usual.

  3. Support Staff 3 Posted by Brett on 16 Oct, 2012 10:37 PM

    Brett's Avatar

    It's Python based as opposed to the native C library that renders MultiMarkdown in Marked. There is no creole renderer that will work that way yet.

    And you can't have both markdown and creole render at the same time. You either have a custom processor and use creole, or you use the built-in processor and use Markdown. I'm working on a way to set the processor per-file, but it's not ready yet.

  4. 4 Posted by mmacho on 16 Oct, 2012 11:10 PM

    mmacho's Avatar

    Understood, so I supposed…

    Thanks Brett.

    El 17/10/2012, a las 00:37, "Brett" <[email blocked]> escribió:

  5. Brett closed this discussion on 08 Nov, 2012 05:25 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac