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

Add support for script type "application/ld+json" #821

Closed
biasso opened this issue Dec 2, 2015 · 1 comment
Closed

Add support for script type "application/ld+json" #821

biasso opened this issue Dec 2, 2015 · 1 comment

Comments

@biasso
Copy link
Contributor

biasso commented Dec 2, 2015

The media type "application/ld+json" for <script> tag should be supported.

This is what I expect:

<script type="application/ld+json">
  {
    "@context": "http://schema.org",
    "@type": "Person",
    "name": "John Doe",
    "address": {
      "@type": "PostalAddress",
      "addressLocality": "Wonderland"
    }
  }
</script>

Instead, this is what I get:

<script type="application/ld+json">
  { "@context": "http://schema.org", "@type": "Person", "name": "John Doe", "address": { "@type": "PostalAddress", "addressLocality": "Wonderland" } }
</script>
@bitwiseman
Copy link
Member

Great! Just add some tests and submit a pull request!

@bitwiseman bitwiseman added this to the v1.6.0 milestone Dec 4, 2015
bitwiseman added a commit that referenced this issue Dec 4, 2015
bitwiseman added a commit that referenced this issue Dec 4, 2015
olsonpm pushed a commit to olsonpm/js-beautify that referenced this issue Dec 13, 2015
Add support for the media type "application/json" and "application/ld+json".
Fixes beautifier#821
olsonpm pushed a commit to olsonpm/js-beautify that referenced this issue Dec 13, 2015
olsonpm pushed a commit to olsonpm/js-beautify that referenced this issue Dec 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants