Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

markdown extendMarkdown添加代码替换代码块中的变量 #3071

Open
zxh1101 opened this issue Jul 25, 2022 · 0 comments
Open

markdown extendMarkdown添加代码替换代码块中的变量 #3071

zxh1101 opened this issue Jul 25, 2022 · 0 comments

Comments

@zxh1101
Copy link

zxh1101 commented Jul 25, 2022

const render = md.render
md.$data = {
VERSION:'231',
VERSIONS: vars[BUILD_TYPE].orgName,
NAME: vars[BUILD_TYPE].name
}
md.render = (src,...args) => {
const html = render.call(md, ...args)
return {
result,
data:md.$data,
};
}

变量在代码块中应该如何使用,急用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant