-
Notifications
You must be signed in to change notification settings - Fork 30
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
Ignore mathjax link #21
Comments
If you don't want to see those warnings you can always set I don't think it would really be possible to (reliably) detect if a potentially incomplete link is actually meant to be mathjax. I'm also questioning whether it'd be a good idea because that then couples us to Sorry if this sounds pessimistic. I just don't want to add unnecessary maintenance burden to the project. |
I get that you don't want to depend on the Another possibility would be to add a second For right now, the solution than I've found is to add a special URL to my mathjax statements and then exclude it from linkcheck's configuration like this:
\\[
\mu = \frac{1}{N} \sum_{i=0} x_i
...
\\](mathjax)
[output.linkcheck]
exclude = ["mathjax"] |
Having some sort of Are there any patterns which are "obviously" mathjax? For your use case, we could probably get away with matching a |
The only thing obvious is the It's also important to note that mathjax expression can be on multiple lines and therefore a regex like It would probably be a little complex to get the content of a link, since links can contain pretty much any markdown inside them. The content of the links will therefore probably have to be converted back to markdown, maybe using pulldown-cmark-to-cmark, before they can be used. Merry Christmas btw! |
For me it was solved by just using |
I use |
As shown in the mdBook documentation, Mathjax blocks are written this way:
\\[ \mu = \frac{1}{N} \sum_{i=0} x_i \\]
. The temporary solution is to only use the inline Mathjax syntax which doesn't interfere with this tool and looks like this:\\( \mu = \frac{1}{N} \sum_{i=0} x_i \\)
.The good side of it is that it only gives out a warning so it doesn't prevent the site from compiling.
Here's the output from
mdbook build
:I am also using mdBook
v0.3.5
and mdbook-linkcheckv0.5.0
if that can be of any help.The text was updated successfully, but these errors were encountered: