The new AttributedString markdown doesn't seem to support code blocks. Such as with single or triple ` marks
Hello world
or
func foo(text:String) -> String{
return text
}
Does anyone know how to make this work?
The new AttributedString markdown doesn't seem to support code blocks. Such as with single or triple ` marks
Hello world
or
func foo(text:String) -> String{
return text
}
Does anyone know how to make this work?
When creating an AttributedString
from markdown, the resulting AttributedString
should have the ranges of inline code and code blocks annotated correctly with the presentation intent and inline presentation intent attributes. If you're not seeing that feel free to open a feedback submission. Could you elaborate a bit more on what you're seeing or the code that you're using to create your AttributedString
from markdown?