Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
27 lines
549 B
Plaintext
27 lines
549 B
Plaintext
/**
|
|
* @import {HtmlExtension} from 'micromark-util-types'
|
|
*/
|
|
|
|
/**
|
|
* Create an HTML extension for `micromark` to support GFM strikethrough when
|
|
* serializing to HTML.
|
|
*
|
|
* @returns {HtmlExtension}
|
|
* Extension for `micromark` that can be passed in `htmlExtensions`, to
|
|
* support GFM strikethrough when serializing to HTML.
|
|
*/
|
|
export function gfmStrikethroughHtml() {
|
|
return {
|
|
enter: {
|
|
strikethrough() {
|
|
this.tag('<del>')
|
|
}
|
|
},
|
|
exit: {
|
|
strikethrough() {
|
|
this.tag('</del>')
|
|
}
|
|
}
|
|
}
|
|
}
|