// Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/ import { markup } from '../markup' it('markup creates correct html', () => { expect(markup('||italic||')).toBe('italic') expect(markup('|bold|')).toBe('bold') expect(markup('_underline_')).toBe('underline') expect(markup('//strikethrough//')).toBe('strikethrough') expect(markup('§keyboard§')).toBe('keyboard') expect(markup('[link](https://zammad.org)')).toBe( 'link', ) })