-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
retain formatting in web and pdf content; improve page content rendering
- Loading branch information
1 parent
d961077
commit 4dce53e
Showing
5 changed files
with
40 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
app/src/lib/components/custom-source/RenderPDFContent.svelte
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
app/src/lib/components/custom-source/RenderWebContent.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script lang="ts"> | ||
export let content: string; | ||
$: paragraphs = content.split('\n\n').filter((p) => p.trim()); | ||
</script> | ||
|
||
<section class="w-full flex flex-col gap-y-3"> | ||
{#each paragraphs as paragraph, idx (idx)} | ||
<article class="pb-2 border-b leading-relaxed border-b-gray-500/10"> | ||
{paragraph} | ||
</article> | ||
{/each} | ||
</section> | ||
|
||
<style> | ||
article :global(code) { | ||
background-color: rgba(62, 3, 3, 0.1); | ||
padding: 0.25rem 0.5rem; | ||
border-radius: 0.25rem; | ||
} | ||
</style> |