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

Fall back to general fontification of source blocks if lang attr is n… #55

Merged
merged 2 commits into from
Feb 18, 2024

Conversation

TobiasZawada
Copy link
Collaborator

Asciidoctor also fontifies code blocks without language attribute like:

[source]

general code block

Adapt adoc-fontify-code-blocks to that case.

@bbatsov
Copy link
Owner

bbatsov commented Feb 12, 2024

I think it'd be good to add an unit test for this.

Restructure adoc-fontify-code-blocks and adoc-fontify-code-block-natively
such that things that are needed for blocks with and without language attribute
are done in adoc-fontify-code-blocks.
@TobiasZawada
Copy link
Collaborator Author

I think it'd be good to add an unit test for this.

Done. I'll squash-merge now.

@TobiasZawada TobiasZawada merged commit 2c2eb80 into master Feb 18, 2024
8 checks passed
@TobiasZawada TobiasZawada deleted the work/srcBlockWithoutLangAttr branch February 18, 2024 10:35
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.

2 participants