4 ms·
Is there a consistent pattern to it? I'm having trouble working out how you derive LineScript from HTML. <meta charset="utf-8" /> becomes charset -> utf-
by PinkMilkshake 8y ago
Is there a consistent pattern to it?
I'm having trouble working out how you derive LineScript from HTML.
<meta charset="utf-8" />
becomes
charset -> utf-8
but
<meta name="viewport" content="width=device-width, initial-scale=1" />
becomes
meta -> viewport -> width=device-width, initial-scale=1
Why does the first one start with the key of the attribute, but the second starts with the element then the value of the attribute?
- helb 8y agoLooks like charset is some kind of a shortcut for meta charset: https://github.com/ntrupin/linescript/blob/bc625c92ff5cccf3bbf0981ac61df35fc6892209/src/compiler.js#L88-L100 https://github.com/ntrupin/linescript/blob/bc625c92ff5cccf3b...