We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I set atom Font "新宋体"
My md is as below:
Format with tidy-markdown
Format with markdown-writer
I temporarily modify .atom\packages\tidy-markdown\node_modules\tidy-markdown\lib\tables.coffee to avoid the problem
longestStringInArray = (array) -> longest = 0 for str in array ######### I modify here ######### len = str.replace(/[^\u0000-\u00ff]/g,"aa").length; if len > longest then longest = len return longest
formatRow = (row, alignments, columnWidths) -> # apply padding around each cell for alignment and column width for i in [0...row.length] row[i] = ( switch alignments[i] when 'right' pad(columnWidths[i], row[i]) when 'center' # rounding causes a bias to the left because we can't have half a char whitespace = columnWidths[i] - row[i].length leftPadded = pad(Math.floor(whitespace / 2) + row[i].length, row[i]) pad(leftPadded, Math.ceil(whitespace / 2) + leftPadded.length) else ######### I modify here ######### # left is the default alignment when formatting pad(row[i], columnWidths[i] - (row[i].replace(/[^\u0000-\u00ff]/g,"aa").length - row[i].length)) ) # trimRight is to remove any trailing whitespace added by the padding joinColumns(row).trimRight()
I write coffeescript and javascript for the first time, the code is a bit ugly, hope you can fix it in the new realse.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I set atom Font "新宋体"
My md is as below:
Format with tidy-markdown
Format with markdown-writer
I temporarily modify .atom\packages\tidy-markdown\node_modules\tidy-markdown\lib\tables.coffee to avoid the problem
I write coffeescript and javascript for the first time, the code is a bit ugly, hope you can fix it in the new realse.
The text was updated successfully, but these errors were encountered: