Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import presetHTML5 from '@bbob/preset-html5';
export default presetHTML5.extend(tags => ({
...tags,
b: (...args) => ({
...tags.b(...args),
attrs: {
style: { fontWeight: 'bold' },
},
}),
i: (...args) => ({
...tags.b(...args),
attrs: {
style: { fontStyle: 'italic' },
},
}),