Skip to content

Conversation

@invisibleroads
Copy link
Contributor

@invisibleroads invisibleroads commented Jul 26, 2017

The extra padding causes the first line of each markdown rendered code block to be indented, but does not indent the rest of the code block, resulting in a jagged left edge. Removing this bit of CSS restores a flat left edge.

You can verify this by trying to render the following:

abc
    def
    ghi

This fix will revert 533aea1.

screenshot from 2017-07-26 15-39-22

The extra padding causes the first line of each markdown rendered code block to be indented, but does not indent the rest of the code block, resulting in a jagged left edge. Removing this bit of CSS restores a flat left edge.

You can verify this by trying to render the following:

    abc
        def
        ghi
@invisibleroads invisibleroads changed the title Revert 533aea11fdcb3a358add0ae4cbe41c97dac2cf2c Restore flat edge of rendered html code block Jul 26, 2017
@gnestor
Copy link
Contributor

gnestor commented Jul 27, 2017

Thanks for your contribution @invisibleroads! Can you please check that "Allow edits from maintainers" box in the right column or add this CSS rule to renderedhtml.less?

p code {
    padding: 1px 5px;
}

This will preserve the padding for inline code elements (and not code block elements).

@gnestor gnestor added this to the 5.1 milestone Jul 27, 2017
@invisibleroads
Copy link
Contributor Author

Now I understand that you were trying to add padding to inline code in rendered markdown.

@gnestor
Copy link
Contributor

gnestor commented Jul 27, 2017

Thanks! Will merge as soon as CI build passes 👍

@gnestor gnestor merged commit bbd2ac6 into jupyter:master Jul 27, 2017
@gnestor gnestor mentioned this pull request Aug 3, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants