-
Notifications
You must be signed in to change notification settings - Fork 98
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
Bug: < and > are removed in markdown code snippets #98
Comments
I think this might affect all Markdown libraries, because it's seeing them as HTML. For example, if I paste that same thing into iA Writer on my Mac (my Markdown editor), it does exactly the same thing. |
Outch, so writing an article about Swift generics using the markdown content approach of Ignite could be a bit of a problem. |
I don't have iA Writer to see it for myself but in VSCode previews it works. Maybe there is a misunderstanding in that I meant the code is either inline code or in a code block. Being able to display HTML code in a code block should be working in every Markdown library? |
I've also had some issues with Swift code, specially a for loop with
codeBlock.code solves the problems.It's interesting that there are no more reports of this issue so maybe my conclusions are wrong. |
That's a great finding. I will try it out at times and maybe we can figure something out on how to fix it for Ignite. |
I stumbled across an issue where a code snippet in a markdown file, such as,
func store(in set: inout Set<AnyCancellable>) { }
is rendered asfunc store(in set: inout Set) { }
. The generic type is simple removed from the Set. Unfortunately I could find the issue in the Ignite framework or if this is an issue with swift-markdown.The text was updated successfully, but these errors were encountered: