Repository navigation
extensions: copy config dict on each highlighted block - #1241
Conversation
|
Can you please add a test for multiple highlighted blocks? |
|
@mitya57 Added them to the now amended commit. 😃 |
|
CI error appears unrelated to my change. 😕
|
|
The reason why we Perhaps we should be making a copy of the config for each code block and then we can pop the setting off of the copy. As an aside, we have the |
|
@waylan Thanks for the explanation! 😃 |
This fixes a bug where any subsequent highlighted block with codehilite would result in the omission of the style setting, because it was popped off the dict. It would then fall back to pygments_style 'default' after the first block. Fixes #1240
This fixes a bug where any subsequent highlighted block with codehilite would result in the omission of the style setting, falling back to default.
Fixes #1240