Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Regular expressions for parsing pandoc output do not work on Windows - #320

Merged
shyamd merged 1 commit into
shyamd:mainfrom
bgro:bug_windows_style_linebreaks
Jun 21, 2025
Merged

Regular expressions for parsing pandoc output do not work on Windows#320
shyamd merged 1 commit into
shyamd:mainfrom
bgro:bug_windows_style_linebreaks

Conversation

@bgro

@bgro bgro commented Jun 3, 2025

Copy link
Copy Markdown
Contributor

When running mkdocs on a Windows system (yes, I know, why would one, but it is what it is), the regular expressions for parsing the citations output by pandoc do not work and the reference_cache stays empty. The problem are the Windows-style linebreaks of form \r\n rather than \n.

This patch fixes the issue.

…ork on Windows systems because of Windows-style linebreaks.
@Serruchox7

Serruchox7 commented Jun 17, 2025

Copy link
Copy Markdown

I was facing two issues on Windows, one of them was related to what you are describing:

WARNING -  Error formatting citation my_ref: 'my_ref'

Aborted with 1 warnings in strict mode!

I could get a compiled documentation but without any references inside.

Using your suggestion solved my issue too by compiling the documentation including the refs ;)

@shyamd

shyamd commented Jun 21, 2025

Copy link
Copy Markdown
Owner

Thanks! This looks good.

@shyamd
shyamd merged commit 5edea1d into shyamd:main Jun 21, 2025
9 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants