Skip to content

Commit

Permalink
fix(vue) Corrected typo in Vue plugin setting detectedLanguage (#2807)
Browse files Browse the repository at this point in the history
* Corrected typo in Vue plugin setting detectedLanguage

Fixed typo `this.detectectLanguage` -> `this.detectedLanguage` when rendering content when a language has been provided. In that case detectedLanguage was not getting set, which meant the computed className was also not getting the language.
  • Loading branch information
rushimusmaximus committed Nov 2, 2020
1 parent 66a2598 commit 3971170
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS.txt
Expand Up @@ -296,3 +296,4 @@ Contributors:
- Fredrik Ekre <ekrefredrik@gmail.com>
- Jan Pilzer <Hirse@github>
- Jonathan Sharpe <mail@jonrshar.pe>
- Michael Rush <michaelrush@gmail.com>
7 changes: 6 additions & 1 deletion CHANGES.md
@@ -1,6 +1,10 @@
## Version 10.4.0 (work in process)

New languages:
Parser:

- fix(vue): Language name now appears in CSS class (#2807) [Michael Rush][]

New Languages:

- Added Chapel grammar to SUPPORTED_LANGUAGES (#2806) [Brad Chamberlain][]

Expand Down Expand Up @@ -29,6 +33,7 @@ New themes:
[Taufik Nurrohman]: https://github.com/taufik-nurrohman
[Jan Pilzer]: https://github.com/Hirse
[Jonathan Sharpe]: https://github.com/textbook
[Michael Rush]: https://github.com/rushimusmaximus


## Version 10.3.1
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/vue.js
Expand Up @@ -33,7 +33,7 @@ export const Component = {
this.detectedLanguage = result.language;
} else {
result = hljs.highlight(this.language, this.code, this.ignoreIllegals);
this.detectectLanguage = this.language;
this.detectedLanguage = this.language;
}
return result.value;
},
Expand Down

0 comments on commit 3971170

Please sign in to comment.