Display a sidebar like HackMD book mode
Available on Chrome Web Store.
- This extension is NOT developed by HackMD team.
- I develop this extension for personal use.
There may be undiscovered defects. Please think twice before use.
- webRequest
- Read security headers related to iframe
- declarativeNetRequest
- Modify found security headers to make functionality working
- Hostname must contains
hackmd
orcodimd
; otherwise, this extension will not enable book mode. In the other words, if you host CodiMD without domain name, this extension is not for you. - After markdown is parsed by MarkdownIt, tags in the following will be reserved and others will be removed.
h1 h2 h3 h4 h5 h6 ul ol li a b strong i em s sub sup mark
- Install npm dependencies
npm install
- Build it
npm run build
- Install extension
- Open your note for book index
https://codimd.your.domain/note
- Add
book
to query stringhttps://codimd.your.domain/note?book
- Enjoy it
- Links will be opened in new tab
- HackMD (Reference)
[target=_blank]
is added explicitly- Starts with http (non-SSL)
- This extension
[target=_blank]
is added explicitly- Cross-origin
- HackMD (Reference)