fix(catalog): preserve literal preview markers

This commit is contained in:
Tommaso Casaburi
2026-04-29 15:24:54 +07:00
parent f82e5f04b9
commit fd26d6fd10
5 changed files with 52 additions and 15 deletions
@@ -105,6 +105,9 @@ describe('misc utils', () => {
expect(removeMarkdown('[spoiler]secret[/spoiler]\n>greentext\n**bold** [label](https://example.com) `code` ```block```  ')).toBe(
'secret\ngreentext\nbold label code block',
);
expect(removeMarkdown('>greentext\n*poisons u* _and underlines_', { preserveEmphasisMarkers: true, preserveGreentextMarkers: true })).toBe(
'>greentext\n*poisons u* _and underlines_',
);
});
it('preloads theme asset URLs through Image instances', () => {