We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4126593 commit 04876ddCopy full SHA for 04876dd
1 file changed
book/generate_toc.rb
@@ -39,7 +39,7 @@ def extract_text(node)
39
section_nodes = []
40
if node.type == :softbreak
41
section_nodes << " "
42
- elsif node.type == :text
+ elsif node.type == :text or node.type == :code
43
section_nodes << node.string_content
44
else
45
node.each do |subnode|
0 commit comments