UNPKG

html-to-md

Version:

A JS library for convert HTML<String> to markdown<String>, gzip 10kb

15 lines (11 loc) 388 B
import S from '../../src/tags/s' describe('test <s></s> tag',()=>{ it('no nest',()=>{ let s=new S("<s>javascript</s>") expect(s.exec()).toBe("~~javascript~~") }) it('can nest',()=>{ let s=new S("<s><a href=\"https://github.com/nodeca/babelfish/\"><i>babelfish</i></a></s>") expect(s.exec()).toBe("~~[*babelfish*](https://github.com/nodeca/babelfish/)~~") }) })