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

Markdown Not Converting to HTML Inside a List #20

Open
jwalkerinterpres opened this issue Apr 5, 2024 · 0 comments
Open

Markdown Not Converting to HTML Inside a List #20

jwalkerinterpres opened this issue Apr 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jwalkerinterpres
Copy link

jwalkerinterpres commented Apr 5, 2024

It seems like this library doesn't work if the markdown is inside a list. For instance, in this markdown:

Here is a list of your top stuff:
    
    1. ::span[(T1078)]
    2. other stuff
 ::span[(T1078)]

The string ::span[(T1078)] will convert properly, but 1. ::span[(T1078)] will not convert.

Is there any way to use this library with lists, or are the two mutually incompatible?

EDIT: This is with a React Markdown setup like:

<Markdown
        components={{
          span: props => {
            const { node, ...rest } = props;
            return <span style={{ marginTop: '1em' }} {...rest} />;
          }
        }}
        remarkPlugins={[remarkDirective, remarkDirectiveRehype]}
      >
        {markdownText}
 </Markdown>
@IGassmann IGassmann added the enhancement New feature or request label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants