mirror of
https://github.com/SphericalKat/medium.rip.git
synced 2026-10-21 01:34:22 +00:00
feat: implement markup rendering
Signed-off-by: Sphericalkat <amolele@gmail.com>
This commit is contained in:
1 parent
3de9bfc58c
commit
7b6e7d7edb
8 files changed
+195
-52
No files matched your search
+2
-9
@@ -17,17 +17,10 @@
|
||||
</head>
|
||||
|
||||
<body class="flex flex-col h-full w-full items-center">
|
||||
<article class="prose lg:prose-xl pt-20">
|
||||
<article class="prose lg:prose-xl p-20">
|
||||
<h2 class="text-2xl">{{.Title}}</h2>
|
||||
<p><a href="https://medium.com/u/{{.UserId}}">{{.Author}}</a> on {{.PublishDate}}</p>
|
||||
{{range .Nodes}}
|
||||
{{if eq .type "H3"}}
|
||||
<h3>.text</h3>
|
||||
{{end}}
|
||||
{{if eq .type "IMG"}}
|
||||
<h3>.text</h3>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{.Paragraphs}}
|
||||
</article>
|
||||
</body>
|
||||
|
||||
|
||||
Reference in new issue
Block a user