Skip to content

Commit

Permalink
update usage on marker
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatiusmb authored Jan 19, 2024
1 parent 056ad4f commit 73a4735
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workspace/marqua/src/artisan/marker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import markdown from 'markdown-it';
import { scope } from 'mauss';
import { generate } from '../utils.js';
import { uhi } from '../utils.js';
import { transform } from './brush.js';

export const marker = markdown({
Expand Down Expand Up @@ -30,7 +30,7 @@ marker.renderer.rules.heading_open = scope(() => {
const level = +token.tag.slice(-1);
if (level > 4) return `<${token.tag}>`;
const [delimited] = text.match(/\$\(.*?\)/) || [''];
const id = generate.id(delimited.slice(2, -1) || text);
const id = uhi(delimited.slice(2, -1) || text);

if (level === 2) parents = [id];
if (level === 3) parents = [parents[0], id];
Expand Down

0 comments on commit 73a4735

Please sign in to comment.