Skip to content
Super duper basic Codepen integration for Gitbook 3.x.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json
yarn.lock

README.md

gitbook-plugin-codepen-placeholder

Super duper basic Codepen integration for Gitbook 3.x.

book.json

{
    "plugins": [
        "codepen-placeholder"
    ],
    "codepen-placeholder": {
        "account": "marcopeg",
        "username": "Marco Pegoraro",
        "height": "300px",
        "width": "100%",
        "themeId": "0",
        "defaultTab": "html,result"
    }
}

Embed your Codepen:

{% codepen id="qBWxQLB" %}{% endcodepen %}

{% codepen id="qBWxQLB", height="400px", defaultTab="result" %}{% endcodepen %}
You can’t perform that action at this time.