mirror of
https://github.com/placeholder-soft/prodigyapi.git
synced 2026-04-28 20:04:59 +08:00
Update ToC to preserve italics, see #551
This commit is contained in:
@@ -8,7 +8,7 @@ def toc_data(page_content)
|
||||
html_doc.css('h1, h2, h3').each do |header|
|
||||
headers.push({
|
||||
id: header.attribute('id').to_s,
|
||||
content: header.content,
|
||||
content: header.children,
|
||||
level: header.name[1].to_i,
|
||||
children: []
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user