mirror of
https://github.com/sern-handler/website
synced 2026-06-28 02:32:23 +00:00
feat: migrate to starlight
This commit is contained in:
26
node_modules/marked/src/Hooks.js
generated
vendored
Normal file
26
node_modules/marked/src/Hooks.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import { defaults } from './defaults.js';
|
||||
|
||||
export class Hooks {
|
||||
constructor(options) {
|
||||
this.options = options || defaults;
|
||||
}
|
||||
|
||||
static passThroughHooks = new Set([
|
||||
'preprocess',
|
||||
'postprocess'
|
||||
]);
|
||||
|
||||
/**
|
||||
* Process markdown before marked
|
||||
*/
|
||||
preprocess(markdown) {
|
||||
return markdown;
|
||||
}
|
||||
|
||||
/**
|
||||
* Process HTML after marked is finished
|
||||
*/
|
||||
postprocess(html) {
|
||||
return html;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user