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

支持从环境变量取得变量,替换内容 #7

Open
hailiang-wang opened this issue Mar 8, 2023 · 0 comments
Open

支持从环境变量取得变量,替换内容 #7

hailiang-wang opened this issue Mar 8, 2023 · 0 comments

Comments

@hailiang-wang
Copy link
Owner

hailiang-wang commented Mar 8, 2023

在运行 CLI markup 时,从环境变量中,寻找 MBN_ 开头的变量并取其值组成键值对,对 markdown 正文内容进行替换(使用前缀 %)。

比如,

export MBN_foo=bar

那么 markdown 正文中有 %MBN_foo%,那么该字符串%MBN_foo%替换为 bar

others

前缀含义。

markup-markdown --> M13N --> MBN
hailiang-wang added a commit that referenced this issue Mar 28, 2023
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