diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-10-03 23:34:27 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-10-03 23:34:27 +0200 |
commit | 84315a99f13adee0b96b6b12191f40a8012e32d1 (patch) | |
tree | 2744eae8600872f40ce7ea74b9eb4598e22e8532 /packages/gitbook-plugin-hints | |
parent | 026cc8304d38d7fc9bd02e9978ff52416eabbec0 (diff) | |
download | gitbook-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.js | 3 |
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 }; |