Socket
Book a DemoInstallSign in
Socket

gitbook-plugin-codeblock-numbering

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-plugin-codeblock-numbering

This plugin adds `data-index` attribute to all tags.

0.0.2
latest
Source
npmnpm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

This plugin adds data-index attribute to all <pre> tags.

Usage example

Add this CSS code to your styles/website.css

.markdown-section pre {
  position: relative;
}

.markdown-section pre:before {
  display: block;
  content: attr(data-index);
  position: absolute;
  top: 0;
  right: 0;
  background-color: #silver;
  text-align: center;
  width: 2em;
  color: white;
}

screenshot

FAQs

Package last updated on 29 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.