diff --git a/.gitignore b/.gitignore index aac64950..f494f3b0 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ node_modules/* .idea .vscode package-lock.json +config.json diff --git a/browser/main/modals/PreferencesModal/InfoTab.js b/browser/main/modals/PreferencesModal/InfoTab.js index fa49025f..d4b2a408 100644 --- a/browser/main/modals/PreferencesModal/InfoTab.js +++ b/browser/main/modals/PreferencesModal/InfoTab.js @@ -145,9 +145,7 @@ class InfoTab extends React.Component { height='92' />
[1]
+hello-world: https://github.com/BoostIO/Boostnote/
hello-world β©οΈ
+This is the first line.
+This is the second line.
This is the first line. +This is the second line.
+" +`; + +exports[`Markdown.render() should render shortcuts correctly 1`] = ` +"Ctrl
+Ctrl
+" +`; + +exports[`Markdown.render() should renders [TOC] placholder correctly 1`] = ` +" +###$ H4
+" +`; + +exports[`Markdown.render() should renders KaTeX correctly 1`] = ` +"c=pmsqrta2+b2 +" +`; + +exports[`Markdown.render() should renders abbrevations correctly 1`] = ` +"The HTML specification
+is maintained by the W3C.
+ filename.js
+ 2
+ var project = 'boostnote';
+
+ "
+`;
+
+exports[`Markdown.render() should renders definition lists correctly 1`] = `
+"Term 3
+~
Definition 1
+Definition 2
+ { some code, part of Definition 2 }
+
+Third paragraph of definition 2.
+H20
+" +`; + +exports[`Markdown.render() should renders sup correctly 1`] = ` +"29th
+" +`; + +exports[`Markdown.render() should text with quotes correctly 1`] = ` +"This is a βQUOTEβ.
+" +`; + +exports[`Markdown.render() should text with quotes correctly 2`] = ` +"This is a "QUOTE".
+" +`; diff --git a/tests/lib/escapeHtmlCharacters-test.js b/tests/lib/escapeHtmlCharacters.test.js similarity index 75% rename from tests/lib/escapeHtmlCharacters-test.js rename to tests/lib/escapeHtmlCharacters.test.js index 672ef917..8c9e0b42 100644 --- a/tests/lib/escapeHtmlCharacters-test.js +++ b/tests/lib/escapeHtmlCharacters.test.js @@ -1,46 +1,45 @@ const { escapeHtmlCharacters } = require('browser/lib/utils') -const test = require('ava') -test('escapeHtmlCharacters should return the original string if nothing needed to escape', t => { +test('escapeHtmlCharacters should return the original string if nothing needed to escape', () => { const input = 'Nothing to be escaped' const expected = 'Nothing to be escaped' const actual = escapeHtmlCharacters(input) - t.is(actual, expected) + expect(actual).toBe(expected) }) -test('escapeHtmlCharacters should skip code block if that option is enabled', t => { +test('escapeHtmlCharacters should skip code block if that option is enabled', () => { const input = `