creole

Which markup language? Markdown or?

北战南征 提交于 2019-12-06 21:57:56
问题 I am currently looking for a markup language to use in a project. I want to allow site vistors to edit a wiki like page using a markup language (not HTML). I am implementing this site in Ruby on Rails, and would prefer (although not bound) to use something that already has strong support in the form of a gem. There are a few main things I am looking for in a markup language: It needs to be easy to use for a non-technical crowd. It needs to be safe from cross site scripting attacks. It needs

Working example of wikitext-to-HTML in ANTLR 3

*爱你&永不变心* 提交于 2019-12-06 11:47:35
问题 I'm trying to flesh out a wikitext-to-HTML translator in ANTLR 3, but I keep getting stuck. Do you know of a working example that I can inspect? I tried the MediaWiki ANTLR grammar and the Wiki Creole grammar, but I can't get them to generate the lexer & parser in ANTLR 3. Here are the links to two grammars I've tried using: http://www.mediawiki.org/wiki/Markup_spec/ANTLR http://www.wikicreole.org/wiki/EBNFGrammarForCreole1.0 I can't get any of these two to generate my Java Lexer and Parser.