Skip to content

Conversation

@linawolf
Copy link
Contributor

@linawolf linawolf commented Oct 28, 2023

Most basic block and inline formats are covered now.

Markdown - different from rst - allows nested inline elements (a strong text that is also emphasized, link texts with inline code, ...) Our nodes can currently not store such information therefore we cannot support them currently.

Images are considered inline in Markdown and can appear within texts while images in rst are block level elements. I therefore had to introduce a new Node Type for inline images.

League\CommonMark Does not seem to support line-breaks (https://www.markdownguide.org/basic-syntax/#line-breaks) so these are also missing.

I did not implement https://www.markdownguide.org/basic-syntax/#html due to the security concerns.

linawolf added a commit to TYPO3-Documentation/render-guides that referenced this pull request Oct 29, 2023
Markdown rendering still has a lot of flaws that are adressed in phpDocumentor/guides#640

Some errors are fixed there (like the warnings going to the log instead of the console and output of simple paragraphs)

For others I added skiped tests
linawolf added a commit to TYPO3-Documentation/render-guides that referenced this pull request Oct 29, 2023
Markdown rendering still has a lot of flaws that are adressed in
phpDocumentor/guides#640

Some errors are fixed there (like the warnings going to the log instead
of the console and output of simple paragraphs)

For others I added skiped tests

For now the rendering can be tried out with

ddev exec vendor/bin/guides fixtures/markdown output
--input-file=README.md
@linawolf linawolf force-pushed the feature/markdown branch 3 times, most recently from 89bc794 to f297861 Compare October 29, 2023 18:25
@linawolf linawolf requested a review from jaapio October 29, 2023 21:12
Copy link
Member

@jaapio jaapio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks pretty good! Thanks for this amazing amount of work. This seems to set a good foundation of future development to support more markdown features.

Just some minor changes to finalize this.

@linawolf linawolf requested a review from jaapio October 31, 2023 14:31
@jaapio jaapio merged commit db823ec into main Oct 31, 2023
@jaapio jaapio deleted the feature/markdown branch October 31, 2023 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants