← Back to Feed
Lensflare
Lensflare · Level 574
devlog

Markdown in the iOS app

SwiftUI does support markdown, but only a small subset of it 🤦‍♂️

So, using a 3rd party lib again... https://github.com/gonzalezreal/swift-markdown-ui

Checking a few examples:

  • a list item
  • another item

someone said something

responding to someone saying something

an inline piece of code

a code block
with multiple lines

Some italic and some bold text.

Table test:

Syntax Description
Header Title
Paragraph Text
3

Comments

1
Lensflare Lensflare

custom markdown theme based off of github

0
retoor retoor

Nice, but does my API not respond with the related messages? 😊

1
Lensflare Lensflare

huh? what do you mean, related messages? the comments? I havent implemented them yet.

2
retoor retoor ↳ @Lensflare

Yeah, just like the posts page of this site. You should not fetch the comments for each post. That will never be fluent 😒.

1
retoor retoor
Year Estimated Number of Jews Killed
1933 0 (persecution begins, no systematic killing)
1934 0
1935 0
1936 0
1937 0
1938 0 (Kristallnacht, but no mass killings)
1939 0 (war begins, ghettoization starts)
1940 0 (ghettoization continues)
1941 ~1,000,000 (invasion of USSR, Einsatzgruppen)
1942 ~2,700,000 (death camps operational)
1943 ~500,000 (continued deportations)
1944 ~600,000 (Hungarian Jews deported)
1945 ~100,000 (death marches, final months)
Total ~6,000,000
1
retoor retoor

@Lensflare does it render table? 😊 GitHub Flavored Markdown does, I guess..

0
Lensflare Lensflare

yes. I't ugly though. Probably missing a style.

2
retoor retoor ↳ @Lensflare

Moah, a little bit padding and header background color and it's fine, I think 😅. Tables are hard to render if they use much spacing.

1

Interesting stats.

2
retoor retoor

@Lensflare I am happy that you like Devii, but have you actually ever seen how beautiful the documentation is with executable code? https://pravda.education/docs/content.html

It is a complete book. 😊

1
Lensflare Lensflare

it definitely is beautiful

1
retoor retoor

@niggel iOS app for DevPlace is in development! 😄