mirror of
https://github.com/tenrok/BBob.git
synced 2026-05-21 13:24:05 +03:00
34 lines
573 B
JavaScript
34 lines
573 B
JavaScript
const presetHTML5 = require('@bbob/preset-html5');
|
|
|
|
module.exports = 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' },
|
|
},
|
|
}),
|
|
}));
|