Giter Club home page Giter Club logo

Comments (2)

xscode-auto-reply avatar xscode-auto-reply commented on July 18, 2024

Thanks for getting in touch. I'll get to your issue soon! 🚀

For urgent issues and priority support, please visit https://xscode.com/grahamcampbell/Laravel-Markdown.

from laravel-markdown.

GrahamCampbell avatar GrahamCampbell commented on July 18, 2024

Thanks for the question.

I am trying to figure our what is the best way to customize a CommonMark extension. For example I want to add the Table of Contents Extenstion.

The package you link to is not a table of contents extension, but a table exception. Moreover, both of them are dead, and should not be used. You should instead use the implementation of contents provided in the main https://github.com/thephpleague/commonmark package.

However, I would like to customize it using the available options for this extension:

  1. Add League\CommonMark\Extension\TableOfContents\TableOfContentsExtension::class to your markdown config file extension array.
  2. Add that config literally into the markdown.php config file you have.

The default looks something like:

image

You can literally just append your config to the end:

image

from laravel-markdown.

Related Issues (20)

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.