Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown Processor source? #14

Open
benjitusk opened this issue Aug 26, 2022 · 5 comments
Open

Markdown Processor source? #14

benjitusk opened this issue Aug 26, 2022 · 5 comments
Assignees

Comments

@benjitusk
Copy link

Can you release a swift package of the markdown engine? as in, an independent library I can import to use your markdown styling.
For example, I'd like to use something like this:

import SwiftDownMD

struct Comment: View {
    let comment: Comment
    var body: some View {
        VStack {
            Markdown(comment.body)
        }
    }
}
@qeude
Copy link
Owner

qeude commented Dec 26, 2022

Hi @benjitusk,

What would be the use case? It would be to render Markdown as a read only Text?

@qeude qeude self-assigned this Dec 26, 2022
@benjitusk
Copy link
Author

Yes, exactly that

@qeude
Copy link
Owner

qeude commented Dec 26, 2022

Isn't this covered by the SwiftUI Text component?

@benjitusk
Copy link
Author

benjitusk commented Dec 26, 2022

Not quite. your markdown editor has much more extensive support for markdown than SwiftUI Text

@qeude
Copy link
Owner

qeude commented Dec 26, 2022

I see, wouldn't a non-editable SwiftDownEditor make the trick?
I think the best solution here would be to recreate the behaviour of SwiftDownEditor in an UILabel but it might take some time to implement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants