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

Renders @something where it should not #30

Closed
vallieres opened this issue Apr 14, 2016 · 3 comments
Closed

Renders @something where it should not #30

vallieres opened this issue Apr 14, 2016 · 3 comments

Comments

@vallieres
Copy link

Hello,

Just realized that it also runs on my JSON-LD definition:

  <body class="">
      <script type="application/ld+json">
        {
             "<a href="https://github.com/context" class="user-mention">@context</a>" : "http://schema.org",
            "<a href="https://github.com/type" class="user-mention">@type</a>" : "Organization",
            "name" : "Hipster Pixel",
            "url" : "https://hipsterpixel.co",
            "sameAs" : [
              "https://twitter.com/hipsterpixel",
              "https://www.google.com/+HipsterPixel",
              "https://www.facebook.com/hipsterpixel",
              "http://instagram.com/_hipsterpixel"
            ]
        }
        </script>
    <main class="container">

the first two should look like this:

            "@context":  "http://schema.org",
            "@type" : "Organization",
@parkr
Copy link
Member

parkr commented Apr 14, 2016

@vallieres Hi! We use html-pipeline to convert this. Please make sure you're running the latest version (check the Releases on this repo and rubygems.org). If you're not, please upgrade and try again. If the problem persists, please file an issue on the html-pipeline repo I mentioned above and they can assist you further. 😄

@parkr parkr closed this as completed Apr 14, 2016
@vallieres
Copy link
Author

Sure! :) I did have the latest one, after realizing my json-ld was broken, I updated and confirmed it was still happening. I'll open a ticket there. Thanks!

@Haroenv
Copy link

Haroenv commented Aug 13, 2016

I'm having this same problem, however I was writing json-ld in a <pre> tag, and not a <script>. Maybe it's possible to disable this extension for a specific file via the front matter?

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

No branches or pull requests

3 participants