diff --git a/exec/load/markdown.js b/exec/load/markdown.js
index 35a307b201b039e7838542862f84af16f595bbe9..2d9744c83936bd53913c71b1306cc420ff7447ea 100644
--- a/exec/load/markdown.js
+++ b/exec/load/markdown.js
@@ -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];