You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
2 consecutive * or _ should probably raise an error? #391
I mean, yes it gives two empty bold parts (thus nothing is bold). But it makes more sense to raise an error because that's almost-never what the user want.
I disagree this should be an error. It's syntactically valid and it's up to the user to know the language they are writing in. If you don't like the syntax, you may use #strong(...) instead.
It's good practice to give a warning/error when what is written is likely not what the user want, rather than silently do something that the user does not want.
Unless in very special circumstances (e.g. automated document generation), ** is not useful and the user could as well delete both the stars.
Even in the case of automated document generation, if the programmer want to allow empty text inside it is possible to simply use #strong([...]).
Reacted by Trebor Huang, Jan Romann, Lina Blume, astrale-sharp and 0xCED2E
Activity
laurmaedje commentedon Mar 28, 2023
Does it give the same result for you? It should not be bold anymore because the two sets of stars are two empty bold parts.
user202729 commentedon Mar 28, 2023
I mean, yes it gives two empty bold parts (thus nothing is bold). But it makes more sense to raise an error because that's almost-never what the user want.
mateusfccp commentedon Mar 28, 2023
I disagree this should be an error. It's syntactically valid and it's up to the user to know the language they are writing in. If you don't like the syntax, you may use
#strong(...)instead.user202729 commentedon Mar 28, 2023
It's good practice to give a warning/error when what is written is likely not what the user want, rather than silently do something that the user does not want.
Unless in very special circumstances (e.g. automated document generation),
**is not useful and the user could as well delete both the stars.Even in the case of automated document generation, if the programmer want to allow empty text inside it is possible to simply use
#strong([...]).