Skip to content

Commit

Permalink
Fix comments in markdown tables
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyPesse committed Jun 18, 2016
1 parent 6b8126a commit b153728
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions syntaxes/markdown/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ var tableRow = require('./tableRow');
// Create a table entity

/**
Create a table entity from parsed header/rows
@param {Array} header
@param {Array<String>} align
@param {Array<Array>} rows
@rteturn {Object} tokenMatch
*/
* Create a table entity from parsed header/rows
*
* @param {Array} header
* @param {Array<String>} align
* @param {Array<Array>} rows
* @rteturn {Object} tokenMatch
*/
function Table(header, align, rows) {
var ctx = this;

Expand Down Expand Up @@ -47,11 +47,11 @@ function Table(header, align, rows) {
}

/**
Detect alignement per column
@param {Array<String>}
@return {Array<String|null>}
*/
* Detect alignement per column
*
* @param {Array<String>}
* @return {Array<String|null>}
*/
function mapAlign(align) {
return align.map(function(s) {
if (reTable.alignRight.test(s)) {
Expand All @@ -67,11 +67,11 @@ function mapAlign(align) {
}

/**
Render align to text
@param {Array<String>} row
@return {String}
*/
* Render align to text
*
* @param {Array<String>} row
* @return {String}
*/
function alignToText(row) {
return '|' + row.map(function(align) {
if (align == 'right') {
Expand Down

0 comments on commit b153728

Please sign in to comment.