|
|
@@ -1,7 +1,8 @@
|
|
|
import { defaultSchema } from 'hast-util-sanitize';
|
|
|
-import type { Attributes } from 'hast-util-sanitize/lib';
|
|
|
import deepmerge from 'ts-deepmerge';
|
|
|
|
|
|
+type Attributes = typeof defaultSchema.attributes;
|
|
|
+
|
|
|
/**
|
|
|
* reference: https://meta.stackexchange.com/questions/1777/what-html-tags-are-allowed-on-stack-exchange-sites,
|
|
|
* https://github.com/jch/html-pipeline/blob/70b6903b025c668ff3c02a6fa382031661182147/lib/html/pipeline/sanitization_filter.rb#L41
|