Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character entities #454

Closed
tigerros opened this issue Dec 10, 2024 · 1 comment
Closed

Character entities #454

tigerros opened this issue Dec 10, 2024 · 1 comment

Comments

@tigerros
Copy link

Would be nice if I could use character entities like — without the verbose (PreEscaped("—")). AFAIK the & symbol is not used for anything else so I think something like this would be alright:

div {
  "let's pause"
  —
  "done"
}
@lambda-fairy
Copy link
Owner

lambda-fairy commented Jan 6, 2025

Thanks for the suggestion.

Maud was designed with the principle that you specify the DOM, not the exact syntax – which is why e.g. there's no beautify option either. In this case, you can write the em dash directly or use Rust character escapes, and it will have the same result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants