Bloody whitespace...
This commit is contained in:
parent
c8de489ead
commit
262540e735
@ -156,12 +156,9 @@ Utils.parseMarkers = function(text) {
|
||||
|
||||
if (matches.length) {
|
||||
matches.forEach(match => {
|
||||
const replacement = `
|
||||
<a data-action="marker#go modal#close" data-controller="marker" data-marker-coords-value="${match.groups.coords}">
|
||||
${match.groups.content}
|
||||
</a>
|
||||
`;
|
||||
text = text.replace(match.groups.marker, replacement);
|
||||
const replacement = `<a data-action="marker#go modal#close" data-controller="marker" data-marker-coords-value="${match.groups.coords}">
|
||||
${match.groups.content}</a>`;
|
||||
text = text.replace(match.groups.marker, replacement.trim());
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user