diff --git a/index.js b/index.js
index 5d1d89a..728fbfd 100644
--- a/index.js
+++ b/index.js
@@ -19,8 +19,12 @@ exports.getLineHTMLForExport = function (hook, context) {
var header = _analyzeLine(context.attribLine, context.apool);
if (header) {
var inlineStyle = getInlineStyle(header);
- return "" + context.text.substring(1) + "";
+ if (context.lineContent[0] === '*') {
+ context.lineContent = context.lineContent.substring(1);
+ }
+ context.lineContent = "" + context.lineContent + "";
}
+ return true;
}
function _analyzeLine(alineAttrs, apool) {
@@ -29,8 +33,9 @@ function _analyzeLine(alineAttrs, apool) {
var opIter = Changeset.opIterator(alineAttrs);
if (opIter.hasNext()) {
var op = opIter.next();
- header = Changeset.opAttributeValue(op, 'heights', apool);
+
+ header = Changeset.opAttributeValue(op, 'lineHeights', apool);
}
}
return header;
-}
+}
\ No newline at end of file