iso icon indicating copy to clipboard operation
iso copied to clipboard

Google font stylesheet element is html encoded

Open olizilla opened this issue 7 years ago • 2 comments

In ISO I'm hitting the export to HTML button, and seeing stylesheet element for the googlefont showing up in the rendered output.

screen shot 2018-02-12 at 09 16 38

In the source, I see it's getting html encoded.

meta name="generator" content="Compositor Iso"/><link rel='stylesheet' href='https://fonts.googleapis.com/css?family=PT+Serif'>

Everything else is fine, just that element.

This is on [email protected] and [email protected]

olizilla avatar Feb 12 '18 09:02 olizilla

Thanks! It looks like Iso might not be recognizing the tag without the closing /> for JSX. Can you try adding the closing part to see if that works? I'm not sure how to reproduce this, but could you share a code snippet from the .jsx file if that doesn't work?

jxnblk avatar Feb 13 '18 00:02 jxnblk

The project is using both iso and lab; the google font link is being added by some automagic, I've not included a link to it in my iso codes.

Of note, I used the font stack select in lab to select PT Serif, so my theme.json has this for the fonts property

{
  "fonts": [
    "\"PT Serif\", serif"
  ],
/* and the rest */
}

olizilla avatar Feb 14 '18 15:02 olizilla