Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set visual line-height on pre or code elements? #117

Open
karlhorky opened this issue May 16, 2021 · 0 comments
Open

Set visual line-height on pre or code elements? #117

karlhorky opened this issue May 16, 2021 · 0 comments

Comments

@karlhorky
Copy link

Hi @pomber !

I'm trying to use the new version of code-surfer, and there is a strange behavior with line-height.

I am trying to set line-height on the pre and code elements like this:

export const mdxDeckTheme = {
  styles: {
    CodeSurfer: {
      pre: {
        lineHeight: 1.3,
      },
      code: {
        lineHeight: 1.3,
      },
    },
  },
};

This does apply the line-heights to those elements, but does not allow for setting the visual line-height (the height of a line of code, proportional to the font-size).

This doesn't appear to be possible with code-surfer... or am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant