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.

String literal with link references not resolved

See original GitHub issue

I have a string literal:

`[link] https://www.google.com

[Link][link] to google.
`

When using this a a source in my app using 2.5.0 of react-markdown the link ref is printed verbatim instead of being resolved. Moving the link ref definition to the end of the file also does not help.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
rexxarscommented, Nov 11, 2017

Well, the only problem with your example is the missing : after [link] in the first line 😃

0reactions
rexxarscommented, Nov 11, 2017

Should be something like this:

[Link to Google][some-identifier]

[some-identifier]: https://www.google.com

Which renders:

Link to Google

Read more comments on GitHub >

github_iconTop Results From Across the Web

Comparing against string literal not resolved at compile time
When I take your provided Compiler Explorer link and check the "Compile to binary and disassemble the output" option, it is suddenly compiles...
Read more >
Ctrl+click a URL in a string literal takes you to the String ...
I see the "Resolution-Not Reproducible". I'm going to reopen this then. Feel free to reach out to me on Teams or something if...
Read more >
Template literals (Template strings) - JavaScript | MDN
Template literals are literals delimited with backtick (`) characters, allowing for multi-line strings, string interpolation with embedded ...
Read more >
string interpolation - format string output
An interpolated string is a string literal that might contain interpolation expressions. When an interpolated string is resolved to a result ...
Read more >
PEP 498 – Literal String Interpolation
In Python source code, an f-string is a literal string, prefixed with 'f', ... This returns an error because the compiler has not...
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