Fix to remove part class in list item or it will be included in buildMap process

This commit is contained in:
Cheng-Han, Wu 2016-06-21 21:46:27 +08:00
parent f454994daa
commit f1db5c96f3

View file

@ -28,7 +28,6 @@ md.renderer.rules.list_item_open = function (tokens, idx, options, env, self) {
if (tokens[idx].map) {
var startline = tokens[idx].map[0] + 1;
var endline = tokens[idx].map[1];
tokens[idx].attrJoin('class', 'part');
tokens[idx].attrJoin('data-startline', startline);
tokens[idx].attrJoin('data-endline', endline);
}