-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Support for variable replacement? #646
Comments
Closing as stale. Flagged as a proposal for future consideration once we get beyond fixing known defects. See #1106 |
Can this be revisited now that #1106 is closed? |
@umdstu If you create a new issue with more explanation we would be interested in this. This could most likely be implemented by using an custom extension. |
Roger that, thanks!
…On Fri, Sep 9, 2022 at 11:11 AM Tony Brix ***@***.***> wrote:
@umdstu <https://github.com/umdstu> If you create a new issue with more
explanation we would be interested in this. This could most likely be
implemented by using an custom extension
<https://marked.js.org/using_pro#extensions>.
—
Reply to this email directly, view it on GitHub
<#646 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ445GUFWACKLK55A56KALV5NHRPANCNFSM4BNQNP6Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
If you plan to make a custom extension, here's some possible inspiration: I think it's been proposed elsewhere on the interwebs to make use of the existing RefLink syntax for simple string replacement, since RefLinks are essentially just a "fancier" version of a placeholder variable. I.e.:
although you would need some way to identify whether the variable is a URL or just text. GitHub does a similar thing with Footnotes although they use a special token I have been thinking about a similar extension for my own project, and we've been looking at just using quotes:
I don't know how deep you would want to get into recursive markdown parsing or nested variables or anything:
|
Is there a way to insert dynamic variables into the parser and replace placeholders in
.md
?If not, is there a plan for the support in the future?
Thanks.
Great library btw 🎉 🎉
The text was updated successfully, but these errors were encountered: