Skip to content

Commit

Permalink
Fix site (#265)
Browse files Browse the repository at this point in the history
Site broken by conversion to tuple in #261
  • Loading branch information
spenserblack authored Nov 14, 2024
1 parent eb0b527 commit 4532d5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/site/src/lib/Editor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
this.parsedSteamdown = parseSteamdown(value);
const finishedParsing = performance.now();
onParsed(finishedParsing - startTime);
this.renderedMarkup = renderMarkup(this.parsedSteamdown.tree, this.parsedSteamdown.context);
this.renderedMarkup = renderMarkup(this.parsedSteamdown[0], this.parsedSteamdown[1]);
const finishedRendering = performance.now();
onRendered(finishedRendering - finishedParsing);
this.renderedHtml = renderHtml(this.parsedSteamdown.tree, this.parsedSteamdown.context);
this.renderedHtml = renderHtml(this.parsedSteamdown[0], this.parsedSteamdown[1]);
}
}
const stateHelper = new StateHelper();
Expand Down Expand Up @@ -62,7 +62,7 @@
{:else if tab === "markup"}
<pre class="markup">{stateHelper.renderedMarkup}</pre>
{:else if tab === "tree"}
<pre class="tree">{JSON.stringify(stateHelper.parsedSteamdown.tree, null, 2)}</pre>
<pre class="tree">{JSON.stringify(stateHelper.parsedSteamdown[0], null, 2)}</pre>
{/if}
</div>
</div>
Expand Down

0 comments on commit 4532d5f

Please sign in to comment.