Closed miptctx closed 6 months ago
I couldn't reproduce your error by copying and pasting your config.mjs
file, could you provide a minimal reproducible example in the form of a git repo? Which i can clone and check it?
I couldn't reproduce your error by copying and pasting your
config.mjs
file, could you provide a minimal reproducible example in the form of a git repo? Which i can clone and check it?
I have found the issue. If you will create raw project that contains only one index.md
file with next content:
<->
then this issue is reproduced.
So the <->
string crashes the app.
But more over, the strings <-
and <
also crash it. So it looks the flowershow app does not like <
bracket.
And one more investigation. If the index.md
contains such body the app does not crash:
< hello
But this body crashes the app:
<hello
The difference is space after <
bracket. If there is space - it works, if there is no space - it does not.
@miptctx this makes sense!
I believe MDX may be interpreting the <
and >
as special syntax, I've seen this before.
I'm not sure when we are going to fix this, but my suggestion is that for now if you really need the <
you can try escaping it e.g.:
{'<'}hello
@olayway do you have any input here on how we could escape this special character by default and avoid this issue on Flowershow?
CC: @luccasmmg
Its pretty much what Demenech mentioned it, Flowershow interprets everything as mdx
and in mdx the <
is reserved for calling jsx components.
@olayway do you have any input here on how we could escape this special character by default and avoid this issue on Flowershow?
CC: @luccasmmg
It is interesting how obsidian process this bracket because it shows it well. Does it work by another way?
It is interesting how obsidian process this bracket because it shows it well. Does it work by another way?
I believe Obsidian doesn't use MDX but rather markdown extended with plugins.
FIXED. I believe we got to the source of the issue which is the lack of support for <
and >
characters at a the moment in the source markdown.
We probably want an FAQ about this.
There was similar issue #398 and it was fixed by changing
config.mjs
file. But now issue appeared again with validconfig.mjs
file content.I am using
Ubuntu 22.04.2 LTS
,node-v16.15.0-linux-x64
andnode-v18.16.1-linux-x64
(both do not work).My
config.mjs
content:When I execute
npx flowershow@latest export
command I get such output:But after this command has finished, I see 3 node processes that are still launched in my system:
If I will launch this command again, I already get 6 node processes launched:
And so on.
And no
out
directory in.flowershow
of cource. But there is.next
folder.