File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,11 +53,11 @@ export interface MarkdownOptions extends Options {
5353 /**
5454 * Setup markdown-it instance before applying plugins
5555 */
56- preConfig ?: ( md : MarkdownIt ) => void
56+ preConfig ?: ( md : MarkdownIt ) => Awaited < void >
5757 /**
5858 * Setup markdown-it instance
5959 */
60- config ?: ( md : MarkdownIt ) => void
60+ config ?: ( md : MarkdownIt ) => Awaited < void >
6161 /**
6262 * Disable cache (experimental)
6363 */
@@ -229,7 +229,7 @@ export async function createMarkdownRenderer(
229229 md . use ( restoreEntities )
230230
231231 if ( options . preConfig ) {
232- options . preConfig ( md )
232+ await options . preConfig ( md )
233233 }
234234
235235 // custom plugins
@@ -322,7 +322,7 @@ export async function createMarkdownRenderer(
322322
323323 // apply user config
324324 if ( options . config ) {
325- options . config ( md )
325+ await options . config ( md )
326326 }
327327
328328 return md
You can’t perform that action at this time.
0 commit comments