halo-sigs / plugin-highlightjs

集成 highlight.js 为文章提供代码块高亮渲染
https://halo.run/store/apps/app-sqpgf
GNU General Public License v3.0
8 stars 5 forks source link

feat: support page matching to use code highlighting #8

Closed guqing closed 1 year ago

guqing commented 1 year ago

What type of PR is this?

/kind feature

What this PR does / why we need it:

支持通过页面匹配规则使用代码高亮功能

匹配规则使用 Apache Ant 风格的路径,有三种通配符匹配方法,它们可以组合出很多种灵活的路径模式:

示例:

Does this PR introduce a user-facing change?

支持通过页面匹配规则使用代码高亮功能
f2c-ci-robot[bot] commented 1 year ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JohnNiang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/halo-sigs/plugin-highlightjs/blob/main/OWNERS)~~ [JohnNiang] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment