Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apostrophe-toc

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apostrophe-toc

Adds a table of contents widget to the Apostrophe content management system

  • 0.5.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

apostrophe-toc

NPM

apostrophe-toc is a widget for the Apostrophe content management system. Apostrophe TOC lets you display a table of contents generated from the markup of of any text in a given area.

Usage

Configuring the Module

In order to run the Apostrophe TOC widget in your Apostrophe project, you'll need to add it in app.js along with the other modules. There are currently no options for this widget.

modules: {
  apostrophe-toc: {}
}

Including the Widget in your Templates

Now that we've got the widget configured, we can simply add it to our template and use the bundled template in the module. In your page template, simply add "apostrophe-toc" to the controls array in your aposArea call:

{{ aposArea(page, 'main', { controls: [ 'style', 'bold', 'italic', 'toc' ] } ) }}

TO-DO

  • Build it
  • Publish to NPM
  • Build some nice basic styles

Keywords

FAQs

Package last updated on 22 Jan 2015

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc