From 5deabd42ad8ca2fc049a4ccb24a7892b0dcc7356 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 17 Feb 2024 21:10:11 -0400 Subject: test: transformContent: escaping tests (snapshot) --- test/snapshot/transformContent.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test') diff --git a/test/snapshot/transformContent.js b/test/snapshot/transformContent.js index 740d94df..87e337e4 100644 --- a/test/snapshot/transformContent.js +++ b/test/snapshot/transformContent.js @@ -108,6 +108,23 @@ testContentFunctions(t, 'transformContent (snapshot)', async (t, evaluate) => { 'super basic string', `Neat listing: [[string:listingPage.listAlbums.byDate.title]]`); + quickSnapshot( + 'basic markdown', + `Hello *world!* This is **SO COOL.**`); + + quickSnapshot( + 'escape entire tag', + `\\[[album:cool-album|spooky]] [[album:cool-album|scary]]`); + + quickSnapshot( + 'escape end of tag', + `My favorite album is [[album:cool-album|[Tactical Omission\\]]].\n` + + `Your favorite album is [[album:cool-album|[Tactical Wha-Huh-Now]]].`); + + quickSnapshot( + 'escape markdown', + `What will it be, *ye fool?* \\*arr*`); + quickSnapshot( 'lyrics - basic line breaks', `Hey, ho\n` + -- cgit 1.3.0-6-gf8a5