question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Syntax Error on empty anchor tag

See original GitHub issue

Bug Report

I had originally report this to the mdx project but they weren’t able to recreate this issue so I’m opening the issue against docz now to see if it may be the usage of mdx here.

Syntax Error: SyntaxError: /Users/wellingtoncordeiro/Documents/projects/my-proj/CHANGELOG.md: Expected corresponding JSX closing tag for <MDXTag> (24:0)

  22 | Features
  23 |
> 24 | </a>
     | ^
  25 | Change Log
  26 |  (2018-09-04)
  27 |


 @ ./docs/changelog.mdx 9:0-40 22:25-34

Example MD that broke when parsed.

# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

<a name="11.0.1"></a>
## [11.0.1](https://gitlab.com/group/proj/compare/v11.0.0...v11.0.1) (2018-09-10)


### Bug Fixes

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
silvenoncommented, Sep 17, 2018

I managed to simplify breaking code to this:

[foo](#)

<a></a>

<a></a>

[foo](#)

<a></a>

If any of these elements gets removed, the compilation is successful. 🤔

0reactions
tibotibercommented, Jan 11, 2019

Note that #282, which is not related per se, might affect your debugging experience of this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Where are these empty anchor tags coming from?
Got it, simple syntax error and the browser was creating the empty <a></a> tags to try and compensate for the mismatched elements.
Read more >
Empty Link - Equalize Digital
An Empty Link error means that one of the links present on the web page is empty or contains no text describing where...
Read more >
Links in HTML documents - W3C
Syntax of anchor names; Nested links are illegal; Anchors with the id attribute; Unavailable and unidentifiable resources. Document relationships: the LINK ...
Read more >
Bash syntax error when "else" follows an empty "then" clause
It seems that you want to do a no-op if the file is open so you should add a : , which is...
Read more >
<a>: The Anchor element - HTML: HyperText Markup Language
Linking to an element on the same page ... Note: You can use href="#top" or the empty fragment ( href="#" ) to link...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found