Skip to content

Commit

Permalink
fix: [rest] inline code: html5tagname is missing in node (#3784)
Browse files Browse the repository at this point in the history
html5tagname is missing in node
  • Loading branch information
Sponge5 authored Aug 11, 2024
1 parent b8e15b2 commit f8373b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nikola/plugins/compile/rest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ def visit_literal(self, node):
if 'code' in classes:
# filter 'code' from class arguments
node['classes'] = [cls for cls in classes if cls != 'code']
node.html5tagname = 'code'
self.body.append(self.starttag(node, 'code', ''))
return
self.body.append(
Expand Down

0 comments on commit f8373b7

Please sign in to comment.