The fatal flaw of Svelte is that the REPL of Svelte.dev is not supported as an embed on Dev.to, and that Dev.to's code blocks do not support svelte, so we have to write them in html or jsx.
I wouldn't consider these as "fatal flaw[s]", to be honest. Perhaps an "inconvenience" is a more appropriate description. The former example may simply be for security purposes, as the REPL does run arbitrary JavaScript. Meanwhile, the latter example will sort itself out over time as adoption increases.
I must concede, however, that there is no other way around the lack of Svelte-native syntax highlighting for now. But it is awesome that plain html is sufficient to highlight the Svelte language, which is a testament to its commitment to extend the Web platform rather than to supplant it.
The fatal flaw of Svelte is that the REPL of Svelte.dev is not supported as an
embedon Dev.to, and that Dev.to's code blocks do not supportsvelte, so we have to write them inhtmlorjsx.I wouldn't consider these as "fatal flaw[s]", to be honest. Perhaps an "inconvenience" is a more appropriate description. The former example may simply be for security purposes, as the REPL does run arbitrary JavaScript. Meanwhile, the latter example will sort itself out over time as adoption increases.
I must concede, however, that there is no other way around the lack of Svelte-native syntax highlighting for now. But it is awesome that plain
htmlis sufficient to highlight the Svelte language, which is a testament to its commitment to extend the Web platform rather than to supplant it.Haha, this is a joke that is a compliment to Svelte