mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-05 16:42:27 +03:00
32a7fb51da
* refactor(*): convert to babel and generation to lib, es, dist * chore(*): remove generated files * fix(*): lint run command
34 lines
566 B
JavaScript
34 lines
566 B
JavaScript
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' },
|
|
},
|
|
}),
|
|
|
|
u: (...args) => ({
|
|
...tags.b(...args),
|
|
attrs: {
|
|
style: { textDecoration: 'underline' },
|
|
},
|
|
}),
|
|
|
|
s: (...args) => ({
|
|
...tags.b(...args),
|
|
attrs: {
|
|
style: { textDecoration: 'line-through' },
|
|
},
|
|
}),
|
|
}));
|