Markdown 中文本片段的占位符变量
Placeholder variables for text snippets in markdown
我正在尝试编写一个降价文档,其中包含类似于集中指定的占位符变量的内容,该变量允许将特定文本片段传播到文档的不同位置,例如
placeholder = markdown files
This is my text about %placeholder%. %placeholder% should be used by everyone.
遗憾的是,经过一些研究,我没有找到实现此行为的方法。
我知道 Markdown 的参考样式链接功能。但是,从我的角度来看,它似乎并没有完全解决我面临的问题。此外,https://www.brianchildress.co/variables-in-markdown/ 描述了一种完全适合我的问题的方法。但是文中没有替换提供的演示代码的变量random value
。
如果有任何建议或至少提示所请求的功能不可用,我将很高兴。
那个博客 post 完全是错误的。引用样式链接不是变量,它们的行为与此处描述的不同。
Markdown 的指导原则之一是 files should be readable in their source form:
Readability, however, is emphasized above all else. A Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions.
占位符与该原则冲突,不包含在 Markdown 中。
我正在尝试编写一个降价文档,其中包含类似于集中指定的占位符变量的内容,该变量允许将特定文本片段传播到文档的不同位置,例如
placeholder = markdown files
This is my text about %placeholder%. %placeholder% should be used by everyone.
遗憾的是,经过一些研究,我没有找到实现此行为的方法。
我知道 Markdown 的参考样式链接功能。但是,从我的角度来看,它似乎并没有完全解决我面临的问题。此外,https://www.brianchildress.co/variables-in-markdown/ 描述了一种完全适合我的问题的方法。但是文中没有替换提供的演示代码的变量random value
。
如果有任何建议或至少提示所请求的功能不可用,我将很高兴。
那个博客 post 完全是错误的。引用样式链接不是变量,它们的行为与此处描述的不同。
Markdown 的指导原则之一是 files should be readable in their source form:
Readability, however, is emphasized above all else. A Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions.
占位符与该原则冲突,不包含在 Markdown 中。