]> _ Git - fluidbook-html5.git/commitdiff
done #1925 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 2 Feb 2018 17:43:14 +0000 (18:43 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 2 Feb 2018 17:43:14 +0000 (18:43 +0100)
js/libs/fluidbook/menu/fluidbook.chapters.js

index 34d0bce2f1442643a052da1d553a6d93f1dfd82e..10b7b595e142457cc74c90eb5db2239bb6d88cfc 100644 (file)
@@ -21,7 +21,7 @@ FluidbookChapters.prototype = {
         if (this.html[sub] == null) {
             this.makeView(sub);
         }
-        return {sub:sub,view: this.html[sub], title: this.titles[sub], color: this.colors[sub]};
+        return {sub: sub, view: this.html[sub], title: this.titles[sub], color: this.colors[sub]};
     },
     makeView: function (sub) {
         this.makeClassicMenu(sub);
@@ -137,6 +137,7 @@ FluidbookChapters.prototype = {
             chapter.level = '-1';
         }
 
+        chapter.label = chapter.label.replace(/\*([^\*]+)\*/g, '<strong>$1</strong>');
 
         var res = '';
         var href;