Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
Use language not description in class
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaz committed Apr 8, 2018
1 parent eb69758 commit 968cdfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/block.built.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ var addSyntaxToCodeBlock = function addSyntaxToCodeBlock(settings) {
save: function save(_ref2) {
var attributes = _ref2.attributes;

var cls = attributes.language ? "language-" + langs[attributes.language] : "";
var cls = attributes.language ? "language-" + attributes.language : "";
return React.createElement(
'pre',
null,
Expand Down
2 changes: 1 addition & 1 deletion code-syntax.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const addSyntaxToCodeBlock = settings => {
},

save( { attributes } ) {
const cls = ( attributes.language ) ? "language-" + langs[ attributes.language ]: "";
const cls = ( attributes.language ) ? "language-" + attributes.language : "";
return <pre><code lang={ attributes.language } className={ cls }>{ attributes.content }</code></pre>;
},
};
Expand Down

0 comments on commit 968cdfa

Please sign in to comment.