Skip to content

Commit

Permalink
bump 1.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Dec 25, 2016
1 parent 6adcfff commit cb2b191
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@

## 1.3.5
### Bug fixes
- Fix vue

## 1.3.4
### Bug fixes

- Supports [vuep](https://github.com/QingWei-Li/vuep)

## 1.3.3
### Bug fixes
- Fixed cover rendering timing
Expand Down
5 changes: 3 additions & 2 deletions lib/docsify.js
Original file line number Diff line number Diff line change
Expand Up @@ -2410,7 +2410,8 @@ renderer.heading = function (text, level) {
renderer.code = function (code, lang) {
if ( lang === void 0 ) lang = '';

var hl = prism.highlight(code, prism.languages[lang] || prism.languages.markup);
var hl = prism.highlight(code, prism.languages[lang] || prism.languages.markup)
.replace(/{{/g, '<span>{{</span>');

return ("<pre data-lang=\"" + lang + "\"><code class=\"lang-" + lang + "\">" + hl + "</code></pre>")
};
Expand Down Expand Up @@ -2456,7 +2457,7 @@ function renderArticle (content) {
renderSidebar.rendered = false;
renderNavbar.rendered = false;

if (typeof Vue !== 'undefined' && typeof Vuep !== 'undefined') { new Vue({ el: 'main' }); } // eslint-disable-line
if (content && typeof Vue !== 'undefined' && typeof Vuep !== 'undefined') { new Vue({ el: 'main' }); } // eslint-disable-line
if (OPTIONS$1.auto2top) { scroll2Top(); }
}

Expand Down
Loading

0 comments on commit cb2b191

Please sign in to comment.