What are my options for working with markdown in C

2019-04-06 19:35发布

问题:

I am seeing many many different use cases where I could use Markdown in apps that I write, both personal and professional. But from my research so far, I haven't been able to find many options for working with it in ColdFusion. I would certainly like to keep from reinventing the wheel by trying to implement it myself if someone else already has a project that I can use and contribute to, both because of time and not to duplicate efforts.

My preference would be to use an implementation in native coldfusion because that would be the easiest to tweak if it was necessary, but I am open to alternatives in other languages, as long as it is easy enough to implement and maintain. I have looked at the WMD editor, but it doesn't look like it is the whole solution. It would work for outputing the markup, but I would want to store that and then convert it to html as necessary for display.

Does anyone know of any other options?

Update: I do know of the CFX_markdown but I am not sure it is mature enough. If anyone out there has experience with it I would love to hear about it.

Update 2: I have added a bounty to this question. Not to say that the answer that has been given so far isn't a good one or isn't the best one, but I am wanting to see if anyone else has any other information about markdown with CF so we know all of the options.

Update 3: So offering the bounty didn't really work. I will go ahead and let it auto accept the only answer just in case we have any late answers. Thanks to everyone who has contributed.

回答1:

The Markdown Wiki refers to a Java implementation called MarkdownJ. I've no idea how mature it is, and I know you'd prefer a native ColdFusion implementation, but if you're running ColdfusionMX then a Java module might be a good compromise.



回答2:

We have a plugin created that does this in ColdFusion already:

http://coldbox.org/forgebox/view/Markdown