Suppress inspection in Markdown

I have authored some Markdown for creating man pages via pandoc.  The results work great but I'm getting a few "Cannot resolve anchor #foo" that I'd like to suppress.  Technically, the anchors do exist as an HTML tag in the raw Markdown.  For example, I need to resort to such means because I want to link to a definition (linking to section headers is much simpler):

~~~

<a name="size-arguments"></a>*SIZE* arguments

: Some options take a *SIZE* argument. For convenience *SIZE* may be...

~~~

and later ...

~~~

See [*SIZE* arguments](#size-arguments) for more details.

~~~

Ideally, PyCharm would get this inspection right.  In the meantime, is there a way I can suppress this inspection per incident or document?  PyCharm doesn't offer an option here to insert a special comment to suppress these, though I'm hoping a manually inserted one would work ... if I knew what it would like I'd try that.  I'd rather not remove the file from my inspection scope since other inspections are still valuable.

3 comments

Have you tried to uncheck "Anchor reference problems" in HTML inspection settings?

0

That setting has no effect here.  Even if it did, it would not be my preference for the entire project.

0

Unfortunately there's no way to suppress the inspection per document (file). If I understand correctly, the main issue here is that PyCharm handles this specific inspection incorrectly, so I would suggest to submit it as a bug report to our issue tracker (https://youtrack.jetbrains.com/issues/PY), providing a more encompassing example and description.

0

Please sign in to leave a comment.