{"repo":"yasuken2013/markdown-it-php","free":true,"listed":false,"github":"https://github.com/yasuken2013/markdown-it-php","clone":"git clone https://github.com/yasuken2013/markdown-it-php.git","description":"php version markdown-it","language":"PHP","stars":31,"topics":["markdown-it","markdown","php","commonmark"],"license":"MIT","category":"productivity","readme_excerpt":"markdown-it-php This gem is a port of the markdown-it Javascript package by Vitaly Puzrin and Alex Kocharin. Currently synced with markdown-it 14.3.0 Javascript Live demo - Follows the CommonMark spec + adds syntax extensions & sugar (URL autolinking, typographer). - Configurable syntax! You can add new rules and even replace existing ones. - Safe by default. Table of content - Install - Syntax extensions - References / Thanks - License Install composer : Simple Single line rendering, without paragraph wrap: Init with presets and options ( ) presets define combinations of active rules and options. Can be \"commonmark\" , \"zero\" or \"default\" (if skipped). Plugins load Syntax highlighting Apply syntax highlighting to fenced code blocks with the highlight option: The sample here is only the highlight of the PHP language. Or with full wrapper override (if you need assign class to ): Linkify linkify: true uses linkify-it. To configure linkify-it, access the linkify instance through $md- linkify : Syntax extensions Embedded (enabled by default): - Tables (GFM) - Strikethrough (GFM) The following plugins are in the kaoken\\markdown-it-php\\MarkdownIt\\Plugins directory: - subscript \\MarkdownItSub - superscript \\MarkdownItSup - footnote \\MarkdownItFootnote - definition list \\MarkdownItDeflist - abbreviation \\MarkdownItAbbr - emoji \\MarkdownItEmoji - custom container \\MarkdownItContainer - insert \\MarkdownItIns - mark \\MarkdownItMark Manage rules By default all rules are enabled, but can b","default_branch":null,"files":null,"tree":[],"storefront":"/r/yasuken2013","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yasuken2013/markdown-it-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}