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

Template Literal syntax causing new line #9

Closed
zachleat opened this issue Nov 20, 2018 · 3 comments
Closed

Template Literal syntax causing new line #9

zachleat opened this issue Nov 20, 2018 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@zachleat
Copy link
Member

This example on 11ty.io:

var { graphql, buildSchema } = require("graphql");
  
// this could also be `async function`
module.exports = function() {
  // if you want to `await` for other things here, use `async function`
  var schema = buildSchema(`type Query {
    hello: String
  }`);
  
  var root = {
    hello: () => "Hello world async!"
  };
  
  return graphql(schema, "{ hello }", root);
};

Works fine on https://prismjs.com/test.html
Works fine when using language text.
But when using language js it outputs this:

image

Note the ); on a new line.

@zachleat zachleat added the bug Something isn't working label Nov 20, 2018
@zachleat
Copy link
Member Author

Live example: https://www.11ty.io/docs/data-js/

@zachleat
Copy link
Member Author

zachleat commented Dec 3, 2018

This is fixed by 11ty/11ty-website#35 but we probably need to update the sample CSS in this repo too

@zachleat
Copy link
Member Author

Highlighter for this still isn’t quite working, filed at #13

@zachleat zachleat added this to the v2.0.2 milestone Apr 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant