Skip to content

Commit 8f211f7

Browse files
committed
fix null ref when inspecting code cells for title block
1 parent 5a889b6 commit 8f211f7

File tree

1 file changed

+1
-1
lines changed
  • src/resources/filters/quarto-post

1 file changed

+1
-1
lines changed

src/resources/filters/quarto-post/book.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function quartoBook()
88

99
-- If this is a title block cell, we should render it
1010
-- using the template
11-
if (tcontains(el.attr.classes, 'quarto-title-block')) then
11+
if (el.attr ~= nil and el.attr.classes ~= nil and tcontains(el.attr.classes, 'quarto-title-block')) then
1212

1313
-- read the contents of the code cell
1414
-- this should just be some metadata

0 commit comments

Comments
 (0)