summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-hints
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-10-03 23:34:27 +0200
committerSamy Pesse <samypesse@gmail.com>2016-10-03 23:34:27 +0200
commit84315a99f13adee0b96b6b12191f40a8012e32d1 (patch)
tree2744eae8600872f40ce7ea74b9eb4598e22e8532 /packages/gitbook-plugin-hints
parent026cc8304d38d7fc9bd02e9978ff52416eabbec0 (diff)
downloadgitbook-84315a99f13adee0b96b6b12191f40a8012e32d1.zip
gitbook-84315a99f13adee0b96b6b12191f40a8012e32d1.tar.gz
gitbook-84315a99f13adee0b96b6b12191f40a8012e32d1.tar.bz2
First handling of templating blocks
Diffstat (limited to 'packages/gitbook-plugin-hints')
-rw-r--r--packages/gitbook-plugin-hints/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/gitbook-plugin-hints/index.js b/packages/gitbook-plugin-hints/index.js
index 55efd25..c762232 100644
--- a/packages/gitbook-plugin-hints/index.js
+++ b/packages/gitbook-plugin-hints/index.js
@@ -1,8 +1,9 @@
module.exports = {
blocks: {
- hint: ({ kwargs }) => {
+ hint: ({ kwargs, children }) => {
return {
+ children,
style: kwargs.style || 'info',
icon: kwargs.icon
};