Skip to content
This repository was archived by the owner on Feb 6, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ exports.getLineHTMLForExport = function (hook, context) {
var header = _analyzeLine(context.attribLine, context.apool);
if (header) {
var inlineStyle = getInlineStyle(header);
return "<span style=\"" + inlineStyle + "\">" + context.text.substring(1) + "</span>";
if (context.lineContent[0] === '*') {
context.lineContent = context.lineContent.substring(1);
}
context.lineContent = "<span style=\"" + inlineStyle + "\">" + context.lineContent + "</span>";
}
return true;
}

function _analyzeLine(alineAttrs, apool) {
Expand All @@ -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;
}
}