Skip to content

Allow compiling with markdown3 #716

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

Merged
merged 1 commit into from
Oct 19, 2024
Merged

Conversation

wentasah
Copy link
Contributor

Currently compilation fails with:

/build/src/classes/renderer/markdown.c:191:20: error: variable or field 'flags' declared void

According to comment 1, markdown3 introduces backward incompatibility with respect to document flags.

This commit adds conditionally compiled code that allows building pdfpc with both markdown versions 2 and 3.

Fixes #682

@wentasah wentasah force-pushed the markdown3 branch 2 times, most recently from 07b1c96 to 08e66b9 Compare April 17, 2024 19:21
@wentasah
Copy link
Contributor Author

Sorry for the force-push spam. I was fixing CI failures.

Let me know whether minimum cmake version bump is OK. If not, I'll try to come up with a more compatible solution.

CMakeLists.txt Outdated
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.7)
Copy link
Member

Choose a reason for hiding this comment

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

Please update README.rst accordingly.

@wentasah
Copy link
Contributor Author

README updated and rebased to master.

Currently compilation fails with:

    /build/src/classes/renderer/markdown.c:191:20: error: variable or field 'flags' declared void

According to comment [1], markdown3 introduces backward
incompatibility with respect to document flags.

This commit adds conditionally compiled code that allows building
pdfpc with both markdown versions 2 and 3.

The used cmake operator VERSION_GREATER_EQUAL requires cmake 3.7 so we
bump minimal cmake version requirement.

Fixes pdfpc#682

[1]: pdfpc#682 (comment)
@AndreasBilke AndreasBilke merged commit 264e145 into pdfpc:master Oct 19, 2024
9 checks passed
@ildar ildar mentioned this pull request Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Does not compile with markdown3
3 participants