-
Notifications
You must be signed in to change notification settings - Fork 8
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
Use the glimmer syntax, because that's what we use. Not handlebars! #46
base: master
Are you sure you want to change the base?
Conversation
so I've seen this Do you maybe need to add a language to this list for it to work: https://github.com/empress/field-guide/blob/master/index.js#L47-L58 ? |
Also it isn't great that the tests are passing when there is clearly an issue 🙃 |
yup, I was missing "markup", which I myself added to the ember-prism README 🤦 It also looks like the shodown initializer is undoing the hifi highlighting for all language tags except for glimmer (because it's new). I made some changes to the Prism languages in app.js... Also, for @Turbo87, who has a project where they don't want prismjs-glimmer, how would we handle that? |
It now looks like the deploy preview isn't compiling 🤔 I forced |
This should be superseded by #82 |
@NullVoxPopuli can you take another look at this, rebase and see what changes from this PR are still needed? We were able to bump the version successfully, but it looks like you have a few other changes here that haven't landed in other PRs. So, I want to make sure we get them in if they're needed. |
I don't have the time / energy for this atm -- any extra-curricular OSS I do is going to be on limber and related projects, like buttered-ember, and glimdown. |
✅ Deploy Preview for field-guide ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
import Application from '@ember/application'; | ||
import Resolver from 'ember-resolver'; | ||
import loadInitializers from 'ember-load-initializers'; | ||
import config from 'dummy/config/environment'; | ||
|
||
import { setup } from 'ember-prism'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
each consuming app will have to do this, unless there is a field-guide
entrypoint we can have folks import and do this setup on behalf of people.
export default class App extends Application { | ||
modulePrefix = config.modulePrefix; | ||
podModulePrefix = config.podModulePrefix; | ||
Resolver = Resolver; | ||
} | ||
|
||
loadInitializers(App, config.modulePrefix); | ||
setup(); | ||
|
||
Prism.languages.hbs = Prism.languages.glimmer; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
handlebars
is taken care of: https://github.com/shipshapecode/ember-prism/blob/main/addon/index.js#L4
Update: the below is resolved, but I think this implementation is potentially sub-optimal
Here is an alternate implementation: https://github.com/empress/ember-showdown-prism/pull/51/files
old post
So... this went goofy.
html
tag on a code snippet toglimmer
to test the hifi highlighting