Skip to content

Commit

Permalink
await markdown parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Dec 16, 2023
1 parent b8241d2 commit 1ab7f8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/routes/tagger/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
let leaflet: Leaflet;
let DomEvent: DomEventType;
const initializeData = () => {
const initializeData = async () => {
if (dataInitialized) return;
const userFound = $users.find((user) => user.id == data.user);
Expand Down Expand Up @@ -293,7 +293,8 @@
eventElements = eventElements;
// add markdown support for profile description
profileDesc.innerHTML = DOMPurify.sanitize(marked.parse(filteredDesc));
const markdown = await marked.parse(filteredDesc);
profileDesc.innerHTML = DOMPurify.sanitize(markdown);
const setupChart = () => {
tagTypeChart = new Chart(tagTypeChartCanvas, {
Expand Down

0 comments on commit 1ab7f8a

Please sign in to comment.