2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-17 19:21:20 +03:00

feat(*): react render support, move some helper functions to plugin-helper

This commit is contained in:
Nikolay Kostyurin
2018-08-09 02:45:19 +02:00
parent 846d93a2a4
commit 1a84968ea2
20 changed files with 471 additions and 169 deletions
+33
View File
@@ -0,0 +1,33 @@
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' },
},
}),
}));