Replies: 1 comment 2 replies
-
Colons are legal in the path part of a URL. You could try replacing the But I don't really understand your question. Are you using pandoc to convert these HTML files to PDF? With what command exactly? Your last comment really confuses me. I think we need more context. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to convert some HTML files into PDFs.
Unfortunately, the HTML files have bare URLs in the body. For most URLs this is not an issue, they get automagically converted. But URLs that contain a colon (or multiple colons) are either ignored or the active URL is only up to the Colon.
Example URL:
https://www.familysearch.org/ark:/61903/1:1:6ZSL-PHGC
I'm not a programmer and I was wondering what would be the best approach to rewriting any bare URLs to properly formed HTML? Could a Lua filter do this?
In the AST output, all of the content is in a single
RawBlock
except for the data-meta tag which is passed from the command line.Beta Was this translation helpful? Give feedback.
All reactions