Logo
Explore Help
Sign In
discourse/discourse-table-builder
1
0
Fork 0
You've already forked discourse-table-builder
mirror of https://github.com/discourse/discourse-table-builder.git synced 2025-06-07 18:02:36 +00:00
Code Issues Packages Projects Releases Wiki Activity
discourse-table-builder/test/fixtures/md-table-fixture.js

2 lines
147 B
JavaScript
Raw Permalink Normal View History

FIX: Special character alignment issue (#10) * DEV: Use alternate fork of `array-to-table` * DEV: Add unit test for `arrayToTable()` method * Move `arrayToTable` so it is available for unit tests * DEV: Add assertion for creating a markdown table with special chars When a table with special characters (such as `$`) is inserted in a cell to the right of a blank cell. The alignment of the table gets ruined if the table doesn't have surrounding pipes. This check ensures this alignment is correct. Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>
2022-08-11 11:33:34 -07:00
export default `|Make | Model | Year|\r\n|--- | --- | ---|\r\n|Toyota | Supra | 1998|\r\n|Nissan | Skyline | 1999|\r\n|Honda | S2000 | 2001|\r\n`;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 45ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API