misc style concerns.
This commit is contained in:
parent
72b8233d29
commit
8e51a68125
@ -797,7 +797,8 @@ Renderer.prototype.tablerow = function(content) {
|
||||
Renderer.prototype.tablecell = function(content, flags) {
|
||||
var type = flags.header ? 'th' : 'td';
|
||||
var tag = flags.align
|
||||
? '<' + type + ' style="text-align:' + flags.align + '">' : '<' + type + '>';
|
||||
? '<' + type + ' style="text-align:' + flags.align + '">'
|
||||
: '<' + type + '>';
|
||||
return tag + content + '</' + type + '>\n';
|
||||
};
|
||||
|
||||
@ -942,10 +943,10 @@ Parser.prototype.tok = function() {
|
||||
// header
|
||||
cell = '';
|
||||
for (i = 0; i < this.token.header.length; i++) {
|
||||
flags = {header: true, align: this.token.align[i]};
|
||||
flags = { header: true, align: this.token.align[i] };
|
||||
cell += renderer.tablecell(
|
||||
this.inline.output(this.token.header[i]),
|
||||
{header: true, align: this.token.align[i]}
|
||||
{ header: true, align: this.token.align[i] }
|
||||
);
|
||||
}
|
||||
header += renderer.tablerow(cell);
|
||||
@ -957,7 +958,7 @@ Parser.prototype.tok = function() {
|
||||
for (j = 0; j < row.length; j++) {
|
||||
cell += renderer.tablecell(
|
||||
this.inline.output(row[j]),
|
||||
{header: false, align: this.token.align[j]}
|
||||
{ header: false, align: this.token.align[j] }
|
||||
);
|
||||
}
|
||||
|
||||
@ -975,7 +976,8 @@ Parser.prototype.tok = function() {
|
||||
return renderer.blockquote(body);
|
||||
}
|
||||
case 'list_start': {
|
||||
var body = '', ordered = this.token.ordered;
|
||||
var body = ''
|
||||
, ordered = this.token.ordered;
|
||||
|
||||
while (this.next().type !== 'list_end') {
|
||||
body += this.tok();
|
||||
|
Loading…
x
Reference in New Issue
Block a user