"# gitbook-plugin-medium-zoom A gitbook plugin for zooming images like Medium
In you gitbook's book.json file, add medium-zoom
to plugins list.
Sample book.json
file for gitbook version 2.0.0+
{
"plugins": [
"medium-zoom-conf"
]
}
Sample book.json
file for gitbook version 2.0.0+ and custom options
{
"plugins": [
"medium-zoom-conf"
],
"pluginsConfig": {
"medium-zoom": {
"selector": ".markdown-section img",
"margin": 24,
"background": "#BADA55",
"scrollOffset": 0
}
}
}
- Run
gitbook install
. It will automatically installmedium-zoom
gitbook plugin for your book. This is needed only once. - Build your book (
gitbook build
) or serve (gitbook serve
) as usual.