mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(catalog): preserve literal preview markers
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user