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

Add asciidoc module #102

Merged
merged 1 commit into from
Oct 10, 2024
Merged

Add asciidoc module #102

merged 1 commit into from
Oct 10, 2024

Conversation

mcruzdev
Copy link
Member

@mcruzdev mcruzdev commented Aug 14, 2024

Fixes #95


public String apply(String asciidoc) {
Document document = parser.parse(asciidoc, new Parser.ParserContext(null));
AsciidoctorLikeHtmlRenderer renderer = new AsciidoctorLikeHtmlRenderer(new AsciidoctorLikeHtmlRenderer.Configuration()
Copy link
Contributor

@ia3andy ia3andy Aug 22, 2024

Choose a reason for hiding this comment

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

The renderer could be re-used for multiple files right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I will change it.

Copy link
Contributor

Choose a reason for hiding this comment

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

The renderer could be re-used for multiple files right?

In that case, both Parser and AsciidoctorLikeHtmlRenderer should be thread-safe. Is that so?

Copy link
Contributor

@ia3andy ia3andy left a comment

Choose a reason for hiding this comment

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

Added a few comments..
Tests are failing

@mcruzdev
Copy link
Member Author

mcruzdev commented Aug 22, 2024

Hi

Added a few comments.. Tests are failing

Thank you @ia3andy, I am working on this one first (issue)

@ia3andy
Copy link
Contributor

ia3andy commented Sep 11, 2024

@mcruzdev any progress on this?

@mcruzdev
Copy link
Member Author

Hi @ia3andy, I'm resuming this now.

@mcruzdev mcruzdev requested a review from a team as a code owner September 27, 2024 04:02
@mcruzdev mcruzdev marked this pull request as draft September 27, 2024 04:03
@maxandersen
Copy link
Member

@mcruzdev whats the dfiference in html you were concerned about ?

@mcruzdev
Copy link
Member Author

mcruzdev commented Sep 27, 2024

@mcruzdev whats the dfiference in html you were concerned about ?

@maxandersen, this library generates different semantic HTML tags compared to CommonMark. We need to submit some pull requests to the yupiik/tools-maven-plugin repository to ensure the behavior is as expected.

While this isn’t an issue for standalone use, it can (we need to test) affect CSS application when used with Roq.

@mcruzdev
Copy link
Member Author

mcruzdev commented Oct 8, 2024

Hi guys! Could you take a new review? I would like to give support for roq 😃

cc: @ia3andy @mkouba

Copy link
Contributor

@ia3andy ia3andy left a comment

Choose a reason for hiding this comment

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

It looks good to me

@ia3andy
Copy link
Contributor

ia3andy commented Oct 8, 2024

@mkouba you have the final word..

asciidoc/runtime/pom.xml Outdated Show resolved Hide resolved
mcruzdev pushed a commit to mcruzdev/quarkus-qute-web that referenced this pull request Oct 9, 2024
@mcruzdev mcruzdev force-pushed the issue-95 branch 2 times, most recently from 4b5778e to 0e37a97 Compare October 9, 2024 18:05
@mkouba mkouba merged commit e9b51e6 into quarkiverse:main Oct 10, 2024
2 checks passed
@mkouba
Copy link
Contributor

mkouba commented Oct 10, 2024

@mcruzdev thanks!

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.

{#asciidoc} for Qute
4 participants