Skip to content

Commit

Permalink
fix: correct panelnote url
Browse files Browse the repository at this point in the history
  • Loading branch information
edeleastar committed Jul 5, 2023
1 parent 5877a97 commit b2765c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tutors-ui/lib/Molecules/Cards/NoteCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
import { onMount } from "svelte";
import { currentCourse } from "tutors-reader-lib/src/stores/stores";
import { generateToc } from "tutors-reader-lib/src/utils/markdown-toc-lib";
import { convertMd, convertRichMd, initKaytex } from "tutors-reader-lib/src/utils/markdown-utils";
import { convertRichMd, initKaytex } from "tutors-reader-lib/src/utils/markdown-utils";
export let lo;
onMount(async () => {
await initKaytex();
let url = lo.route.replace("/panelnote/", "");
url = lo.route.replace("/note/", "");
url = url.replace("/note/", "");
url = url.replace($currentCourse.id, $currentCourse.url);
const html = convertRichMd(lo.contentMd, url);
lo.contentHtml = generateToc(html);
Expand Down

0 comments on commit b2765c5

Please sign in to comment.