Skip to content

Conversation

@sanyamsmulay
Copy link
Contributor

#26

Needed because, systems like mkdocs, pandoc are unable to parse fenced blocks if they have extra arguments other than the language to be highlighted.

…ags in output files and protect them when doing an in-place replacement.

Needed because, systems like mkdocs, pandoc are unable to parse fenced blocks if they have extra arguments other than the language to be highlighted.
@basnijholt
Copy link
Owner

basnijholt commented Jul 22, 2025

Thanks for the excellent PR! The backtick standardization feature works perfectly and addresses the mkdocs/pandoc compatibility issue.

I've simplified the implementation while maintaining 100% identical functionality.

- Consolidate _extract_backtick_options from 22 to 12 lines using single regex
- Remove START_MARKERS list and inline marker checking logic
- Merge _process_backticks_start into _process_start_markers
- Replace complex --backtick-standardize/--force-overwrite with simple --no-backtick-standardize
- Remove unnecessary .gitignore file

Maintains 100% identical behavior with ~50 fewer lines of code.
All 30 tests pass with 100% coverage.
@basnijholt basnijholt force-pushed the backtick-output-standardazie branch from a82dd89 to 40584f9 Compare July 22, 2025 06:39
@basnijholt basnijholt merged commit de8d582 into basnijholt:main Jul 22, 2025
5 of 6 checks passed
@basnijholt
Copy link
Owner

@sanyamsmulay
Copy link
Contributor Author

sanyamsmulay commented Jul 26, 2025 via email

@basnijholt
Copy link
Owner

Awesome! Which project is that (if it is OSS?)

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