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

Allow compiling with markdown3 #716

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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

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)
@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.

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
1 participant