Treat .md destinations from PDF as vanilla Markdown #25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the code I'm using to generate vanilla
.mdfiles with this tool (issue #14). I don't know whether this is the best way to implement it -- maybe there should be a command line option instead. I'd find this behavior reasonably intuitive though.The reason I needed vanilla markdown files is because I'm putting the results into LLM prompts, so I want the Markdown to be easy to read and token-efficient.
I'm noticing that further down in
mpx.js, converting from.mmdto.mdjust results in anfs.copy. I'm not sure if there are conversion facilities between.mmdand.md-- if there are, that code might need adjusting too to for consistency.I also looked at adding vanilla markdown to the image conversion functions, but the outputType (
"mmd"here) in calls toConvertImageisn't used in the implementation:I probably won't have the bandwidth to update this pull request, so if it's not useful, please feel free to just close, or use it as a starting point.