ProjectEvergreen / greenwood

Greenwood is your workbench for the web, embracing web standards from the ground up to empower your stack from front to back.
https://www.greenwoodjs.io
MIT License
96 stars 9 forks source link

markdown rendering not correctly processing the text `$1` #1126

Closed thescientist13 closed 1 year ago

thescientist13 commented 1 year ago

Type of Change

Bug

Summary

If you have markdown with this content for the text $10, the $1 are getting stripped out.

## Posters ($10)

Screen Shot 2023-07-21 at 9 30 39 PM

<h2>Posters (0)</h2>

Details

Other examples like $20 and $0 work fine though. https://github.com/AnalogStudiosRI/www.blissfestri.com/pull/124#issuecomment-1645589927


This seems very reminiscent of other .replace capture related bugs we've seen like so I bet it's that.

Seems like maybe we need to find a better way to do this kind of templating? Seems a bit too naive / brittle considering how .replace works in conjunction with certain replacement patterns. Probably good to start a discussion for that maybe?