summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-hints/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-plugin-hints/index.js')
-rw-r--r--packages/gitbook-plugin-hints/index.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/gitbook-plugin-hints/index.js b/packages/gitbook-plugin-hints/index.js
new file mode 100644
index 0000000..c762232
--- /dev/null
+++ b/packages/gitbook-plugin-hints/index.js
@@ -0,0 +1,12 @@
+
+module.exports = {
+ blocks: {
+ hint: ({ kwargs, children }) => {
+ return {
+ children,
+ style: kwargs.style || 'info',
+ icon: kwargs.icon
+ };
+ }
+ }
+};