Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Code check does not work for hyperref #460

Closed
Philipp91 opened this issue Mar 21, 2017 · 2 comments
Closed

Code check does not work for hyperref #460

Philipp91 opened this issue Mar 21, 2017 · 2 comments

Comments

@Philipp91
Copy link

Philipp91 commented Mar 21, 2017

\ref{a_b} and \vref{a_b} work fine and the a_b part gets highlighted in green. So ShareLaTeX recognizes that it's a label and probably features like #9 would work with it once implemented.

\cref{a_b}, \pageref{a_b} and \hyperref{a_b} do not have the highlighting, but that's fine for me.

\hyperref[a_b]{test} marks the underscore with "_ must be inside math mode", but the command is just as valid as the ones before and compiles fine. The label can be in the optional argument, in this case the main argument becomes regular text.

Here's what I found so far:
30d86fe

@jpallen
Copy link
Contributor

jpallen commented Jul 25, 2017

Thanks, this is part of our custom latex worker at https://github.com/sharelatex/ace/blob/latex-syntax-check/lib/ace/mode/latex_worker.js. We ignore commands if don't know whether it should accept _ or not, like \ref, but it appears we don't ignore [..] arguments and we should also.

ghost pushed a commit that referenced this issue Mar 28, 2018
null check map on files and docs inside logger
@das7pad
Copy link
Member

das7pad commented Aug 6, 2021

Hi!

Thank you for taking the time to write up this issue.

We are in the process of migrating to a monorepo at https://github.com/overleaf/overleaf and will mark this repository read-only soon.
You can read more about the monorepo migration at overleaf/overleaf#923.

We are going to close this issue now to avoid any confusion about the inability to comment further.

If you believe this issue still needs addressing, please create a new issue at https://github.com/overleaf/overleaf.

Thanks again!

@das7pad das7pad closed this as completed Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants