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

Implicit padding on text #155

Closed
trajano opened this issue Oct 6, 2021 · 2 comments
Closed

Implicit padding on text #155

trajano opened this issue Oct 6, 2021 · 2 comments

Comments

@trajano
Copy link

trajano commented Oct 6, 2021

There seems to be an implicit padding on text. Is there a way of removing it without affecting the semantics of a paragraph?

    <VStack space="4">
      <Box borderWidth="1">
        <DefaultMarkdown>asdf</DefaultMarkdown>
      </Box>
      <Box borderWidth="1">
        <Text>asdf</Text>
      </Box>
    </VStack>

image

@lvwrence
Copy link

lvwrence commented Feb 9, 2022

@trajano not sure if you figured it out already, but you need to override marginTop and marginBottom in paragraph here: https://github.com/iamacup/react-native-markdown-display/blob/master/src/lib/styles.js#L174

@NickWhiu
Copy link

May as well close issue, Ivwrence's suggestion works & OP liked it above.

@iamacup iamacup closed this as completed Dec 11, 2023
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

4 participants