2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-05 16:42:27 +03:00
Files
bbob/packages/bbob-preset-react/src/index.js
T
Nikolay Kostyurin 32a7fb51da refactor(*): convert to babel and generation to lib, es, dist folders (#2)
* refactor(*): convert to babel and generation to lib, es, dist

* chore(*): remove generated files

* fix(*): lint run command
2018-09-09 23:55:28 +02:00

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' },
},
}),
}));