Skip to content

code_inline is not inline #52

Closed
Closed
@olegbl

Description

@olegbl

Because getIsTextType (https://github.com/mientjan/react-native-markdown-renderer/blob/master/src/lib/util/getIsTextType.js) doesn't include code_inline, it ends up not being grouped together with other text tokens via groupTextTokens (https://github.com/mientjan/react-native-markdown-renderer/blob/master/src/lib/util/groupTextTokens.js) and thus has line breaks around it.

e.g.

foo `code` bar

renders like this:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions