Markdown rendering assistance needed
Posted: Thu Feb 29, 2024 1:44 pm
NOTE: I had to format the URLs below all wrong because this forum software doesn't allow me to paste in the complete links. I get a warning message that URLs can't be used. I tried including them using the "Insert URL" feature as well as in plain text. Just drop the [ and ] from the .io and those are the links.
I have downloaded the 22.2 trial for Delphi and am trying out the markdown functionality. Using the Delphi\Editors\Editor 1 demo, I've loaded a markdown file. I used the full sample seen here... https://markdown-it.github[.io]. I've also loaded that same markdown into https://stackedit[.io]. Both StackEdit and markdown-it.github[.io] render the document in a consistent manner. TRichViewEdit, on the other hand, compresses the newlines, does not show code blocks well, and the images are not shown.
For the whitespace I tried clearing the rvmdloCollapseWhitespace and rvmdloCollapseWhitespaceInCodeSpans options from MarkdownProperties.LoadOptions. I also set the rvmdloKeepLineBreaks option. I can't see any difference in the document rendering. I am not sure what to do about the code blocks and the images. Where should I be looking to render the document consistent with other well known markdown editors/viewers?
Thanks,
Michael
I have downloaded the 22.2 trial for Delphi and am trying out the markdown functionality. Using the Delphi\Editors\Editor 1 demo, I've loaded a markdown file. I used the full sample seen here... https://markdown-it.github[.io]. I've also loaded that same markdown into https://stackedit[.io]. Both StackEdit and markdown-it.github[.io] render the document in a consistent manner. TRichViewEdit, on the other hand, compresses the newlines, does not show code blocks well, and the images are not shown.
For the whitespace I tried clearing the rvmdloCollapseWhitespace and rvmdloCollapseWhitespaceInCodeSpans options from MarkdownProperties.LoadOptions. I also set the rvmdloKeepLineBreaks option. I can't see any difference in the document rendering. I am not sure what to do about the code blocks and the images. Where should I be looking to render the document consistent with other well known markdown editors/viewers?
Thanks,
Michael