flowershow icon indicating copy to clipboard operation
flowershow copied to clipboard

<= or >= in a markdown file breaks build (?)

Open rufuspollock opened this issue 3 years ago • 4 comments

💬2025-02-10: i think we want a docs page on this and #333 as people will run into this a lot. In the longer term we want a way to maybe fix this issue e.g. avoid all the JSX problems we regularly have ... especially in cloud

I suspect that <= and >= or anything with > or < in markdown files can break the build based on my own experiences and e.g. #333.

Tasks

  • [ ] Document this issue and solutions in blog post

Future

  • [ ] think about fixes (e.g. replacing <= or >= with their unicode representation as happens automatically in obsidian)

Tech work (not important for now)

  • [ ] do a quick test in flowershow.app or similar
  • [ ] make a failing test

rufuspollock avatar Dec 05 '22 06:12 rufuspollock

@rufuspollock I have already tested it as one of our users on discord had a similar issue with their content. Here is a related section from MDX docs: https://mdxjs.com/docs/troubleshooting-mdx/#unexpected-character-at-expected-expect. And here is a discord thread with the related conversation: https://discord.com/channels/1029670148824641576/1038924012111274026

olayway avatar Dec 05 '22 09:12 olayway

Adding my two cents: it seems that it is related to some markdown parser. Why ? Putting the characters inside codeblocks fixes the issue. Putting a space between the character and a number fixes the issue too.

danymat avatar Dec 05 '22 10:12 danymat

@danymat https://github.com/flowershow/flowershow/issues/333#issuecomment-1337091429 🙂

olayway avatar Dec 05 '22 10:12 olayway