]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #3636 from flozz/syntax-highlight
authorJérémy Benoist <j0k3r@users.noreply.github.com>
Thu, 7 Jun 2018 06:22:14 +0000 (06:22 +0000)
committerGitHub <noreply@github.com>
Thu, 7 Jun 2018 06:22:14 +0000 (06:22 +0000)
Highlight code in articles using highlight.js

1  2 
app/Resources/static/themes/_global/index.js

index b810e5d7358d53a13a382807e87379477079efaa,7f7e87c0e6bbf954ab683105bb30c5b6d1d03fec..ae598e56e1374a45cb59be9b74f9d69a327e4ee1
@@@ -13,8 -13,10 +13,10 @@@ import './global.scss'
  import './js/shortcuts/entry';
  import './js/shortcuts/main';
  
- import { savePercent, retrievePercent } from './js/tools';
+ /* Hightlight */
+ import './js/highlight';
  
+ import { savePercent, retrievePercent } from './js/tools';
  
  /* ==========================================================================
   Annotations & Remember position
@@@ -65,7 -67,7 +67,7 @@@ $(document).ready(() => 
      retrievePercent(x.entryId);
  
      $(window).resize(() => {
 -      retrievePercent(x.entryId);
 +      retrievePercent(x.entryId, true);
      });
    }
  });