mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-10-01 09:19:34 +05:30
chore(release): bump v4.7.1 → v4.8.0; Prettier pass on overnight-session files
12 commits on master since v4.7.1 baseline, taking tests 524 → 914 across 27 new suites. This commit: - Bumps package.json + README version to v4.8.0 (additive features → semver minor) - Applies Prettier formatting to all files touched during the overnight session so release build is reproducible from a clean repo New in v4.8.0: - PDF encryption close-out (D1) - KaTeX rendering test coverage - Autosave buffer + crash recovery banner - Daily notes + workspace search + doc-aware Q&A - Search sidebar panel + Ask mode - Status bar: word count, reading time, Flesch-Kincaid grade - Footnote hover preview - Smart paste (URL → link, CSV/TSV → table) - Daily notes menu item + sidebar panel + Q&A deep-link - Daily templates gallery - Pluggable DocQA engine (TF-idF default + lazy neural embeddings) Amit Haridas
This commit is contained in:
@@ -3,7 +3,13 @@
|
||||
*
|
||||
* csv-to-table tests — pure module.
|
||||
*/
|
||||
const { detectDelimiter, csvToTable, looksLikeCsv, parseRows, escapeCell } = require('../src/utils/csv-to-table');
|
||||
const {
|
||||
detectDelimiter,
|
||||
csvToTable,
|
||||
looksLikeCsv,
|
||||
parseRows,
|
||||
escapeCell,
|
||||
} = require('../src/utils/csv-to-table');
|
||||
|
||||
describe('detectDelimiter', () => {
|
||||
test('prefers tabs over commas when both are present', () => {
|
||||
@@ -155,7 +161,7 @@ describe('looksLikeCsv', () => {
|
||||
expect(looksLikeCsv('a,b,c')).toBe(false);
|
||||
});
|
||||
|
||||
test('returns false when the column counts don\'t line up at all', () => {
|
||||
test("returns false when the column counts don't line up at all", () => {
|
||||
expect(looksLikeCsv('a,b,c\n1\n2,3,4,5')).toBe(false);
|
||||
});
|
||||
|
||||
@@ -166,6 +172,8 @@ describe('looksLikeCsv', () => {
|
||||
});
|
||||
|
||||
test('returns false for prose (no delimiter)', () => {
|
||||
expect(looksLikeCsv('The quick brown fox jumps over the lazy dog.\nThe cat sat on the mat.')).toBe(false);
|
||||
expect(
|
||||
looksLikeCsv('The quick brown fox jumps over the lazy dog.\nThe cat sat on the mat.')
|
||||
).toBe(false);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user