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 is thrown with inline element

See original GitHub issue

I’m getting the following error

> Having trouble rendering liquid (and markdown) template ./_source/index.md
[0] 
[0] `TemplateContentRenderError` was thrown
[0] > Cannot read property 'attrJoin' of undefined
[0] 
[0] `TypeError` was thrown:
[0]     TypeError: Cannot read property 'attrJoin' of undefined
[0]         at Object.exports.addAttrs (/Users/roobottom/Git/roodesign-2019/node_modules/markdown-it-attrs/utils.js:123:13)
[0]         at Object.transform (/Users/roobottom/Git/roodesign-2019/node_modules/markdown-it-attrs/patterns.js:131:15)
[0]         at Array.curlyAttrs (/Users/roobottom/Git/roodesign-2019/node_modules/markdown-it-attrs/index.js:30:19)
[0]         at Core.process (/Users/roobottom/Git/roodesign-2019/node_modules/markdown-it/lib/parser_core.js:51:13)
[0]         at MarkdownIt.parse (/Users/roobottom/Git/roodesign-2019/node_modules/markdown-it/lib/index.js:523:13)
[0]         at MarkdownIt.render (/Users/roobottom/Git/roodesign-2019/node_modules/markdown-it/lib/index.js:543:36)
[0]         at /Users/roobottom/Git/roodesign-2019/node_modules/@11ty/eleventy/src/Engines/Markdown.js:72:38
[0]         at process._tickCallback (internal/process/next_tick.js:68:7)

When…

Example input:

[Find out how I can help you](/services){.button} 

Current output:

Nothing

Expected output:

<p><a href="/services" class="button">Find out how I can help you</a></p>

Adding a space like this:

[Find out how I can help you](/services) {.button} 

works, but applies the button class to <p> and not <a>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
roobottomcommented, Oct 3, 2019

Ah, I can see that it’s quite old. I’ll upgrade to sort the problem.

0reactions
roobottomcommented, Oct 3, 2019

Thanks for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Display inline throwing an error - javascript - Stack Overflow
... I'm using show to update the element's visibility since that's more idiomatic, ... There's no variable named inline in your application.
Read more >
Grid Inline Adding not working in Kendo UI for jQuery - Telerik
Hi,. I dont know much about inline editing so Im a little lost with this error, but whenever I try to add a...
Read more >
Inline Editing throws Exception on Console - Blazor - Syncfusion
We have validated the reported issue and it occur due to @onblur event of Blazor for elements inside the EditForm. Inside the GridEdit...
Read more >
Inline elements - HTML: HyperText Markup Language | MDN
Inline elements are those which only occupy the space bounded by the tags defining the element, instead of breaking the flow of the...
Read more >
CSS display: inline-block: why it rocks, and why it sucks
“Basically, it's a way to make elements inline, but preserving their block capabilities such as setting width and height, top and bottom margins ......
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