diff --git a/ep_headings/index.js b/ep_headings/index.js index 2cc9cd1..5317884 100644 --- a/ep_headings/index.js +++ b/ep_headings/index.js @@ -5,38 +5,11 @@ exports.eejsBlock_editbarMenuLeft = function (hook_name, args, cb) { return cb(); } -function getInlineStyle(header) { - switch (header) { - case "h1": - return "font-size: 2.0em;line-height: 120%;"; - break; - case "h2": - return "font-size: 1.5em;line-height: 120%;"; - break; - case "h3": - return "font-size: 1.17em;line-height: 120%;"; - break; - case "h4": - return "line-height: 120%;"; - break; - case "h5": - return "font-size: 0.83em;line-height: 120%;"; - break; - case "h6": - return "font-size: 0.75em;line-height: 120%;"; - break; - case "code": - return "font-family: monospace"; - } - - return ""; -} // line, apool,attribLine,text exports.getLineHTMLForExport = function (hook, context) { var header = _analyzeLine(context.attribLine, context.apool); if (header) { - var inlineStyle = getInlineStyle(header); - return "<" + header + " style=\"" + inlineStyle + "\">" + context.text.substring(1) + ""; + return "<" + header + ">" + context.text.substring(1) + ""; } }