Giter Site home page Giter Site logo

freshp0325 / typecho-markdown Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrgeneralgoo/typecho-markdown

0.0 0.0 0.0 575 KB

A markdown parse plugin for typecho.

Home Page: https://www.chengxiaobai.cn/record/markdown-concise-grammar-manual.html

License: MIT License

PHP 100.00%

typecho-markdown's Introduction

Markdown Plugin for Typecho

MarkdownParse 是一款基于 league/commonmark 的 Typecho Markdown 解析插件,它的特色在于完美符合 CommonMark 和 GFM(GitHub-Flavored Markdown)规范,不仅可以为你提供强大而丰富的功能,同时也能确保你的内容在不同平台上都能展现一致的出色效果。

本插件除了支持 CommonMark 和 GFM 规范内提到的功能(目录、表格、任务列表、脚标等等),MarkdownParse 还具有以下额外特性:

  1. Mermaid 语法支持: 可以利用 Mermaid 语法轻松创建各种图表
  2. MathJax 数学公式渲染: 支持使用 MathJax 渲染数学公式
  3. 智能资源加载: 根据实际渲染需求,能够智能识别是否加载渲染所需资源,无需担心引入冗余资源
  4. 图片延迟加载: 支持浏览器原生的图片延迟加载技术,MDN-Lazy loading
  5. 文本高亮: 通过 <mark> HTML 标签实现文本高亮效果,MDN-Mark

环境要求

  • Typecho 1.2.0 or higher
  • PHP 8.0 or higher

安装

  1. 下载这个插件
  2. 修改文件夹的名字为 "MarkdownParse"
  3. 添加到你的项目中并启用它

配置页面

MarkdownParse Config Page

报告问题

你可以直接点击这里提出你的问题

语法示例

https://www.chengxiaobai.cn/record/markdown-concise-grammar-manual.html


MarkdownParse is a Typecho Markdown parsing plugin based on league/commonmark. Its feature lies in its perfect compliance with CommonMark and GFM (GitHub-Flavored Markdown) specifications. It not only provides you with powerful and abundant functions, but also ensures consistent outstanding effects of your content on different platforms.

In addition to the functions mentioned in the CommonMark and GFM specifications (table of contents, tables, task lists, footnotes, etc.), MarkdownParse also has the following additional features:

  1. Mermaid syntax support: Easily create various charts using Mermaid syntax
  2. MathJax formula rendering: Supports rendering mathematical formulas using MathJax
  3. Intelligent resource loading: According to actual rendering needs, it can intelligently identify whether to load required rendering resources without worrying about introducing redundant resources
  4. Image lazy loading: Supports native image lazy loading technology in browsers, MDN-Lazy loading
  5. Text highlight: Realize text highlight effect through <mark> HTML tag, MDN-Mark

Requirements

  • Typecho 1.2.0 or higher
  • PHP 8.0 or higher

Installation

  1. Download this plugin
  2. Rename the folder to "MarkdownParse"
  3. Add it to your project and activate it

Configuration

MarkdownParse Config Page

Reporting Issues

You can click here directly to create an issue

Example

https://www.chengxiaobai.cn/record/markdown-concise-grammar-manual.html

typecho-markdown's People

Contributors

mrgeneralgoo avatar littlejake avatar yujincheng08 avatar renovate[bot] avatar

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.