feat: add markdown to post titles, close #143
This commit is contained in:
1 parent
e530dcd05f
commit
0c55e87b93
3 files changed
+5
-3
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "photon-lemmy",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
class:text-slate-500={post.read && $userSettings.markReadPosts}
|
||||
class:dark:text-zinc-400={post.read && $userSettings.markReadPosts}
|
||||
>
|
||||
{post.post.name}
|
||||
<Markdown source={post.post.name} inline />
|
||||
</a>
|
||||
</div>
|
||||
{#if !$userSettings.showCompactPosts}
|
||||
|
||||
@@ -159,7 +159,9 @@
|
||||
<Icon src={ArrowLeft} mini size="16" slot="prefix" />
|
||||
</Button>
|
||||
</div>
|
||||
<h1 class="font-bold text-lg">{post.post_view.post.name}</h1>
|
||||
<h1 class="font-bold text-lg">
|
||||
<Markdown source={post.post_view.post.name} inline />
|
||||
</h1>
|
||||
{#if isImage(post.post_view.post.url)}
|
||||
<img
|
||||
src={post.post_view.post.url}
|
||||
|
||||
Reference in new issue
Block a user