blackbaud-stache
Advanced tools
Comparing version 0.7.27 to 0.7.28
@@ -6,3 +6,3 @@ { | ||
"name": "blackbaud-stache", | ||
"version": "0.7.27", | ||
"version": "0.7.28", | ||
"description": "Blackbaud Stache", | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -59,18 +59,19 @@ /** | ||
// Apply SKY UX classnames to headers following the example at https://github.com/chjj/marked#overriding-renderer-methods | ||
renderer.heading = function (text, level) { | ||
var classname; | ||
classname = ""; | ||
switch (level) { | ||
case 1: | ||
classname = "bb-page-heading"; | ||
break; | ||
case 2: | ||
classname = "bb-section-heading"; | ||
break; | ||
case 3: | ||
classname = "bb-subsection-heading"; | ||
break; | ||
} | ||
return '<h' + level + ' class="' + classname + '">' + text + '</h' + level + '>'; | ||
}; | ||
// Disabling to fix immediate bug. - Bobby, 2016-06-29 | ||
// renderer.heading = function (text, level) { | ||
// var classname; | ||
// classname = ""; | ||
// switch (level) { | ||
// case 1: | ||
// classname = "bb-page-heading"; | ||
// break; | ||
// case 2: | ||
// classname = "bb-section-heading"; | ||
// break; | ||
// case 3: | ||
// classname = "bb-subsection-heading"; | ||
// break; | ||
// } | ||
// return '<h' + level + ' class="' + classname + '">' + text + '</h' + level + '>'; | ||
// }; | ||
@@ -77,0 +78,0 @@ /** |
4056017
5819