Is there a more current version of MarkD Markdown other than derobins?

I started using derobins wmd markdown , and I really like how it works and integrates with my system. However, I have one BASIC issue where <ol> <ul> and <blockqote> do not work in Google Chrome or RockMelt.

I see that it works here in StackOverflow, but I know that they make a lot of changes.

Can anyone suggest a better version of WMD Markdown?

Here is a screenshot of what my editor looks like when I click "blockquote" in Chrome Google Chrome screws up wmd markdown

+4
source share
2 answers

UPDATE : Qaru has released PageDown , which fixes all of the above errors. Use this instead. Original answer below ...


Technically, the WMD version of Google Code is official, supported by some of the SO employees (view the source to access the actual code). However, he still suffers from the error described above. In fact, this does not match the current version of SO in many ways.

Yang's answer really works, but I took a look at what Stack Overflow actually does, de-minimizing their addBlankLines function. They add the following code to the specified function between lines 1498 and 1500:

 if (navigator.userAgent.match(/Chrome/)) { "X".match(/()./); } 

I can’t understand what this code actually does, but it works! And this is what Qaru uses right now, so it can't be too bad :)

+3
source

open wmd.js , comment on or delete line 2081 and line 2264, which:

 chunk.addBlankLines(); //-----line 2081 

and

 chunk.addBlankLines(nLinesBefore, nLinesAfter, true); //------line 2264 

I don't know why , but I got it from debugging and debugging for a full day. Hope this is helpful.

+2
source

All Articles