Skip to content
Snippets Groups Projects
Commit 57634d24 authored by echicken's avatar echicken
Browse files

HTML cell align

parent aaeb0ae6
No related branches found
No related tags found
No related merge requests found
......@@ -234,6 +234,8 @@ Markdown.prototype.render_table = function () {
}
if (attr.colspan < 2) delete attr.colspan;
}
if (e[n].search(/^\s\s+/) > -1) attr.style = "text-align:right;";
if (e[n].search(/^\s\s+(.+)\s\s+$/) > -1) attr.style = "text-align:center;";
var tt = i == 0 ? 'th' : 'td';
var tag = [self.html_tag_format(tt, attr), '</' + tt + '/>'];
ret += tag[0] + e[n] + tag[1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment