We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 056fc94 + aba3d97 commit 119c2f1Copy full SHA for 119c2f1
src/sphinx_notion/__init__.py
@@ -251,7 +251,8 @@ def _(
251
# By default, the code block has a color set (DEFAULT) which means
252
# that there is no syntax highlighting.
253
# See https://github.com/ultimate-notion/ultimate-notion/issues/93.
254
- del code_text.rich_texts[0].obj_ref.annotations # pyright: ignore[reportUnknownMemberType]
+ for rich_text in code_text.rich_texts: # pyright: ignore[reportUnknownMemberType, reportUnknownVariableType]
255
+ del rich_text.obj_ref.annotations # pyright: ignore[reportUnknownMemberType]
256
code_block.rich_text = code_text
257
return [code_block]
258
0 commit comments