mixu / singlepageappbook

Content and site generator for Single page apps in depth (my book on single page applications)
http://singlepageappbook.com/
1.71k stars 193 forks source link

Un-rendered content: html entities are removed on publish #33

Open fatso83 opened 1 year ago

fatso83 commented 1 year ago

In Chapter 5 there is a paragraph (or more) that reads quite weird:

Skjermbilde 2023-08-09 kl  22 35 39

but also allow you to specify a bindings that do not correspond to elements

a what binding?

you cannot insert an element other than a or inside a .

other than a what? and inside a what?

If you place an invalid wrapper element like a (blank) where the

something is amiss

fatso83 commented 1 year ago

I found the raw source: https://github.com/mixu/singlepageappbook/blob/master/content/detail1.html#L278

Here you can see that there should have been escaped <th> and <div> in the text, as they have been correctly escaped using html entities for the brackets:

 than a &lt;th&gt; or &lt;td&gt; inside a &lt;tr&gt;. If you place an invalid wrapper element like a &lt;div&gt; where th

Something about the publish step seems to remove these, as they are not present in the resulting markup.