mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-17 19:21:20 +03:00
* fix: TagNode.create with null content by default * Create five-meals-sing.md * fix: tests * fix(preset): types inference * fix: preset types * fix: preset types * fix: lock file, parser and utils * refactor: move types to separate package * fix(preset): add @bbob/core to dev deps * fix(preset): lock file * test(preset-vue): create tags * test(preset-vue): tests * chore(nx): fix nx cover deps * chore: changesets
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import presetHTML5 from '@bbob/preset-html5';
|
||||
import type { PresetTagsDefinition } from '@bbob/preset';
|
||||
import type { PresetTagsDefinition } from '@bbob/types';
|
||||
|
||||
const tagAttr = (style: Record<string, string>) => ({
|
||||
attrs: {
|
||||
@@ -7,7 +7,7 @@ const tagAttr = (style: Record<string, string>) => ({
|
||||
},
|
||||
});
|
||||
|
||||
export default presetHTML5.extend((tags: PresetTagsDefinition<'b' | 'i' | 'u' | 's'>) => ({
|
||||
const presetReact = presetHTML5.extend((tags: PresetTagsDefinition<'b' | 'i' | 'u' | 's'>) => ({
|
||||
...tags,
|
||||
|
||||
b: (...args) => ({
|
||||
@@ -30,3 +30,5 @@ export default presetHTML5.extend((tags: PresetTagsDefinition<'b' | 'i' | 'u' |
|
||||
...tagAttr({ textDecoration: 'line-through' }),
|
||||
}),
|
||||
}));
|
||||
|
||||
export default presetReact;
|
||||
|
||||
Reference in New Issue
Block a user