mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-24 11:08:16 +08:00
18 lines
339 B
TypeScript
18 lines
339 B
TypeScript
import type { Markdown } from 'vuepress/markdown'
|
|
import { createContainerPlugin } from './createContainer.js'
|
|
|
|
/**
|
|
* :::steps
|
|
* 1. 步骤 1
|
|
* xxx
|
|
* 2. 步骤 2
|
|
* xxx
|
|
* 3. ...
|
|
* :::
|
|
*/
|
|
export function stepsPlugin(md: Markdown): void {
|
|
createContainerPlugin(md, 'steps', {
|
|
before: () => '<div class="vp-steps">',
|
|
})
|
|
}
|