Giter Club home page Giter Club logo

table-of-contents's Introduction

Run PHPUnit and PHPCS

Table of Contents

Adds a table of contents to your pages based on h3 and h4 tags. Useful for documention-centric sites.

Installation

  1. Upload "/table-of-contents/" to the "/wp-content/plugins/" directory.
  2. Activate the plugin through the "Plugins" menu in WordPress.

Changelog

0.5.1

  • Testing for 5.0
  • Testing for Gutenberg

0.5.0

  • Initial release.

table-of-contents's People

Contributors

garyjones avatar maevelander avatar mjangda avatar trepmal avatar whyisjake avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

table-of-contents's Issues

Gutenberg Compatibility

Not strictly a Gutenberg/Block Editor problem, but that does make it vastly easier to create incompatible headings.

The regex only matches plain tags:

preg_match_all( "/(<{$tag}>)(.*)(<\/{$tag}>)/", $content, $matches, PREG_SET_ORDER );

Any attributes added such as alignment mean the regex won't "find" the heading tag to add to the TOC.

request: Invoke only on specific pages?

I'd love to use this plugin on my employer's Intranet site. Would would be the most sensible way to modify this plugin so that it only renders a TOC on specific pages?

Strict Standards Error

Hi Automatticians,

I am hoping to use this plugin, but I am getting "Non-static method Table_Of_Contents::init() should not be called statically" when I add it as a plugin and activate it. Any idea why?

PHP 8 Unsupported

The plugin can't run with php 8 version, no toc rendered in the page.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.