Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Commit

Permalink
fix a compatible problem
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Jun 9, 2014
1 parent df66c66 commit 640d5ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Donate link: http://owent.net/
Tags: source, code, highlight, sourcecode, highlighter, plugin, syntax, SyntaxHighlighter
Requires at least: 3.0
Tested up to: 3.9.1
Stable tag: 0.1.1
Stable tag: 0.1.2

This is a wordpress plugin for highlight.js library.

Expand Down
4 changes: 2 additions & 2 deletions wp_code_highlight.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: WP Code Highlight.js
* Plugin URI: https://github.com/owt5008137/WP-Code-Highlight.js
* Description: This is simple wordpress plugin for <a href="http://highlightjs.org/">highlight.js</a> library. Highlight.js highlights syntax in code examples on blogs, forums and in fact on any web pages. It&acute;s very easy to use because it works automatically: finds blocks of code, detects a language, highlights it.
* Version: 0.1.1
* Version: 0.1.2
* Author: OWenT
* Author URI: http://owent.net/
* License: 3-clause BSD
Expand Down Expand Up @@ -167,7 +167,7 @@ function hljs_include() {

var code_content = $(block).removeClass("brush:").removeClass("ruler:").removeClass("first-line:").removeClass("highlight:")
.removeClass("brush:" + reg_mat[1] + ";").removeClass(reg_mat[1] + ";").removeClass("true;").removeClass("false;").html();
$(block).empty().append($("<code></code>").addClass('language-' + reg_mat[1]).html(code_content));
$(block).empty().append($("<code></code>").html(code_content)).addClass('language-' + reg_mat[1]);
hljs.highlightBlock(block);
});
<?php }
Expand Down

0 comments on commit 640d5ac

Please sign in to comment.