Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Mojo functionality bug making docs via Pandoc #10603

Closed
rcghpge opened this issue Feb 8, 2025 · 3 comments
Closed

Mojo functionality bug making docs via Pandoc #10603

rcghpge opened this issue Feb 8, 2025 · 3 comments
Labels

Comments

@rcghpge
Copy link

rcghpge commented Feb 8, 2025

Explain the problem.
Include the exact command line you used and all inputs necessary to reproduce the issue. Please create as minimal an example as possible, to help the maintainers isolate the problem. Explain the output you received and how it differs from what you expected.

Hey Pandoc community, stopping by from the Mojo community. I am having trouble converting json documentation to markdown via Pandoc. Here is a snippet from command line in Bash:

pandoc check_os.json -o check_os.md

# Output
JSON parse error: Error in $: JSON missing pandoc-api-version.

Pandoc version?
What version of pandoc are you using, on what OS? (If it's not the latest release, please try with the latest release before reporting the issue. Note that many linux distributions have old versions of pandoc in their repositories.)

The Pandoc version I have installed is version 3.6.2 on Windows 10 WSL2. Here is my PyMo project if you would like to poke around for funsies and test Pandoc interop link

@rcghpge rcghpge added the bug label Feb 8, 2025
@tarleb
Copy link
Collaborator

tarleb commented Feb 8, 2025 via email

@rcghpge
Copy link
Author

rcghpge commented Feb 8, 2025

Can you say a bit about the JSON structure / schema of the the input?

Pandoc expects JSON input to be a representation of it's internal
document format, i.e., the format that pandoc produces when using JSON
as an output format. It cannot guess the meaning of random JSON input.

You could try to process the input with a custom reader, see
https://pandoc.org/custom-readers

I see. These json files for documentation are not random input. I will post the json file structure if that would help when I can. Does Pandoc have a nested json parsing feature? We are building something similar in the Mojo community unless we get beat to it.

@rcghpge
Copy link
Author

rcghpge commented Feb 8, 2025

I’ll look into Lua scripting. Is Lua fast for this sort of framework?

Repository owner locked and limited conversation to collaborators Feb 8, 2025
@jgm jgm converted this issue into discussion #10604 Feb 8, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

2 participants