Skip to content

fix: Variable Replacement does not work properly in team roadmaps, Issue Number: #9557#9569

Open
akurtle wants to merge 1 commit intokamranahmedse:masterfrom
akurtle:master
Open

fix: Variable Replacement does not work properly in team roadmaps, Issue Number: #9557#9569
akurtle wants to merge 1 commit intokamranahmedse:masterfrom
akurtle:master

Conversation

@akurtle
Copy link

@akurtle akurtle commented Jan 28, 2026

The Bug:
The variable '@currentYear@' was not replaced by the new Date().getFullYear().toString() as expected by the replaceVariables function in src/lib/markdown.ts.
It is displayed as raw text '@currentYear@' in the page view. You can check this for yourself using the link above or by looking at the picture below.

The solution:

The markdown in markdownToHtml was not using the replaceVariables function so it was not being replaced

also changed the p tag to use the markdownToHtml function

works as expected now
image

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

Successfully merging this pull request may close these issues.

1 participant