benjaminhoegh/parsedown-extended
Composer 安装命令:
composer require benjaminhoegh/parsedown-extended
包简介
An extension for Parsedown.
README 文档
README
Parsedown Extended
Explore Documentation »
Report bug
·
Request feature
·
Discussions
Table of contents
- Introduction
- Features
- Getting started
- Bugs and feature requests
- Contributing
- Community
- Copyright and license
Introduction
ParsedownExtended is an extention for Parsedown, offering additional features and functionalities. It is designed to provide an easy-to-use Markdown parsing solution while extending the capabilities of the base Parsedown library.
Stand alone versions of the extended features are also available as separate libraries:
Features
ParsedownExtended includes a variety of features to enhance your Markdown parsing experience:
- Task Lists: Create simple task lists in Markdown.
- Smartypants: Automatically convert straight quotes to curly, dashes to en-dash and em-dash, etc.
- Emoji shortcodes: Support for rendering emojis.
- Heading Permalinks: Generate permalinks for your headings.
- Table of Contents: Automatically generate a table of contents based on headings.
- Keystrokes: Render keystroke combinations.
- Marking: Mark text within your documents for emphasis or distinction.
- Superscript and Subscript: Render text as superscript or subscript.
- Diagrams Syntax Support: Recognizes diagram syntax for integration with libraries like mermaid.js and chart.js.
- LaTeX Syntax Support: Detects LaTeX syntax, suitable for mathematical expressions, to be rendered with libraries like KaTeX.js.
- Predefined Abbreviations: Define and use abbreviations easily.
- GFM Alerts: Create alerts using GitHub Flavored Markdown Alert syntax there can be customized into your own language, or even create your own.
- Customizable Options: Extensive options for customizing each Markdown element.
- Additional Features: ParsedownExtended continuously evolves, adding more features over time.
Getting started
Manual
Download the source code from the latest release
You must include parsedown.php 1.8+
Include ParsedownExtended.php
require 'Parsedown.php'; require 'ParsedownExtra.php'; // optional require 'ParsedownExtended.php'; use BenjaminHoegh\ParsedownExtended\ParsedownExtended; $ParsedownExtended = new ParsedownExtended(); echo $ParsedownExtended->text('Hello _Parsedown_!'); # prints: <p>Hello <em>Parsedown</em>!</p> // you can also parse inline markdown only echo $ParsedownExtended->line('Hello _Parsedown_!'); # prints: Hello <em>Parsedown</em>!
Using composer
From the command line interface, navigate to your project folder then run this command:
composer require benjaminhoegh/parsedown-extended
Then require the auto-loader file:
require 'vendor/autoload.php'; use BenjaminHoegh\ParsedownExtended\ParsedownExtended; $ParsedownExtended = new ParsedownExtended(); echo $ParsedownExtended->text('Hello _Parsedown_!'); # prints: <p>Hello <em>Parsedown</em>!</p> // you can also parse inline markdown only echo $ParsedownExtended->line('Hello _Parsedown_!'); # prints: Hello <em>Parsedown</em>!
Bugs and feature requests
Have a bug or a feature request? Please first read the issue guidelines and search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue.
Contributing
Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.
All PHP should conform to the Code Guide.
Community
Get updates on ParsedownExtended's development and chat with the project maintainers and community members.
- Join GitHub discussions.
Copyright and license
Code and documentation copyright 2024 the ParsedownExtended Authors. Code released under the MIT License. Docs released under Creative Commons.
benjaminhoegh/parsedown-extended 适用场景与选型建议
benjaminhoegh/parsedown-extended 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 26.32k 次下载、GitHub Stars 达 51, 最近一次更新时间为 2021 年 05 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「markdown」 「markdown extended」 「parsedown」 「parsedown extended」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 benjaminhoegh/parsedown-extended 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 benjaminhoegh/parsedown-extended 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 benjaminhoegh/parsedown-extended 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Texy converts plain text in easy to read Texy syntax into structurally valid (X)HTML. It supports adding of images, links, nested lists, tables and has full support for CSS. Texy supports hyphenation of long words (which reflects language rules), clickable emails and URL (emails are obfuscated again
Extended faker package providers
Configurable Markdown to HTML converter with Parsedown Extra.
Bootstrap Wizard - Builds a wizard using a tabbalbe structure
Adds the EDTF data type to Wikibase
An extension of Parsedown that adds support for Markdown Extra.
统计信息
- 总下载量: 26.32k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 51
- 点击次数: 10
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-31