Skip to content

Commit

Permalink
refactor: Remove margin hack from Material source
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Feb 18, 2023
1 parent 268c82e commit beec237
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/markdown_exec/rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ def add_source( # noqa: WPS212
if location == "below":
return output + "\n\n" + source_block
if location == "material-block":
# TODO: remove style once margins are fixed in Material for MkDocs
style = 'style="margin-top: 0;"'
return source_block + f'\n\n<div class="result" {style} markdown="1" >\n\n{output}\n\n</div>'
return source_block + f'\n\n<div class="result" markdown="1" >\n\n{output}\n\n</div>'

source_tab_title, result_tab_title = tabs
if location == "tabbed-left":
Expand Down

0 comments on commit beec237

Please sign in to comment.