Open Yoekkul opened 1 year ago
This could probably be fixed by adjusting the regex in cook.js For instance the regex used to detect ingredients could be replaced with
if(stream.match(/^@([^@#~]+?(?={))/))
return "ingredient";
else if(stream.match(/^@([\p{L}\p{M}]+?\b)+/u))
return "ingredient";
When inserting ingredients/cooking utensils with umlauts or accents they only get partially highlighted. Examples would look like the following: @ Möre #Schäler