Skip to content

Commit

Permalink
releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed Jun 24, 2019
1 parent 46a9f62 commit e2abc2a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# 3.0.0

- BREAKING: ember-code-snippet doesn't provide a built-in syntax highlighting component anymore. Instead, you can combine it with the syntax highlighting component of your choice. A recommended choice is [ember-prism](https://github.com/shipshapecode/ember-prism).

To upgrade from ember-code-snippet 2.x:
1. `ember install ember-prism`
2. Create your own `code-snippet` component like:

```hbs
{{!- get-code-sniippet is provided
by ember-code-snippet }}
{{#let (get-code-snippet @name) as |snippet|}}
{{!- CodeBlock is provided by ember-prism -}}
<CodeBlock @language={{snippet.language}}>
{{snippet.source}}
</CodeBlock>
{{/let}}
```
# 2.3.1
- HOUSEKEEPING: bumping a deprecated glob dep. Thanks @AndreJoaquim.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-code-snippet",
"version": "2.3.1",
"version": "3.0.0",
"description": "Ember component for embedding syntax-highlighted code samples.",
"main": "index.js",
"author": "Edward Faulkner <[email protected]>",
Expand Down

0 comments on commit e2abc2a

Please sign in to comment.