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.

Error render when using variable in markdown block

See original GitHub issue

Environment

https://content.nuxtjs.org/playground

Reproduction

Move variable block {{ $doc.title }} into markdown block, then the render result will be unwanted.

Describe the bug

image

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
farnabazcommented, Jun 27, 2022

The content module does not replace variables, it evaluates them at render time. With this approach, let’s say you can use the $route variable in your markdown, which will change based on the URL you are visiting.

Your are visiting: {{ $route.path }}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Slamdata Error when using variable in 3 level chained markdown ...
Slamdata Vesion : 4.1.1 There are 3 decks. Each has set up markdown and show markdown cards used in it. Variables set in...
Read more >
15 Common Problems with rmarkdown (and some solutions)
This section details some the common problems, and the solution that I have found works for me.
Read more >
17.4 Parameterized reports | R Markdown Cookbook
17.4 Parameterized reports. In Section 17.3, we mentioned one way to render a series of reports in a for -loop. In fact, rmarkdown::render()...
Read more >
Chapter 12 R Markdown | Technical Foundations of Informatics
The easiest way to begin a new R-Markdown document in RStudio is to use the File ... in a code block (with echo=FALSE...
Read more >
Inline variable insertion in markdown - Notebook
Hitting “shift+enter” to render the markdown cell would trigger this operation ... an error simply results in a red block rather than a...
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