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

MarkdownPart: move to separate mdoc-parser module #812

Merged
merged 1 commit into from Nov 3, 2023

Conversation

kitbellew
Copy link
Contributor

@kitbellew kitbellew commented Oct 31, 2023

scalafmt has an own markdown parser, to be able to format any scala code found in fenced blocks. In addition to duplicating functionality in that parser, it also doesn't support indented code blocks.

Let's instead extract the parser portion of the mdoc logic into a module so that it can be re-used. That module will have no dependencies.

Helps with scalameta/scalafmt#3672.

scalafmt has an own markdown parser, to be able to format any scala code
found in fenced blocks. In addition to duplicating functionality in that
parser, it also doesn't support indented code blocks.

Let's instead extract the parser portion of the mdoc logic into a module
so that it can be re-used. That module will have no dependencies.
@kitbellew
Copy link
Contributor Author

@tgodzik fyi, in case you missed this :)

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM!

@tgodzik
Copy link
Contributor

tgodzik commented Nov 3, 2023

One minor thing is due to the last update we need to release on JDK 11 now.

@tgodzik tgodzik merged commit b8b3fd7 into scalameta:main Nov 3, 2023
14 checks passed
@kitbellew kitbellew deleted the 812 branch November 9, 2023 00:32
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.

None yet

2 participants