定制 roromedia/parsedown 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

roromedia/parsedown

最新稳定版本:v0.1.2

Composer 安装命令:

composer require roromedia/parsedown

包简介

A parsedown service with superpowers.

README 文档

README

This library is a small layer on top of erusev/parsedown-extra.

Scrutinizer Code Quality Code Coverage Total Downloads License

It currently adds support for:

Installation

composer require roromedia/parsedown

Usage

new Parsedown())->text('your Markdown here')

Menu links

You can define your Menu links on top of your markdown pages. Normally these links would not work because the ids are missing from the associated headings.

This library solves the problem and connects them.

As an example:

# Twig Query

A module for querying content inside TWIG-Templates

- [Installation](#installation)

# Installation

1. Install with composer:

... gets converted to:

<h1>Twig Query</h1>
<p>A module for querying content inside TWIG-Templates</p>
<ul>
    <li><a href="#installation">Installation</a></li>
</ul>
<h1 id="installation">Installation</h1>

As you can see - <h1 id="installation">Installation</h1> has the correct id and therefore the menu list is working again.

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-07