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

Incorrect markdown to html italic + bold+italic + italic #1324

Closed
4 tasks done
fabriqbruno opened this issue Apr 29, 2024 · 3 comments
Closed
4 tasks done

Incorrect markdown to html italic + bold+italic + italic #1324

fabriqbruno opened this issue Apr 29, 2024 · 3 comments
Labels
👯 no/duplicate Déjà vu 👎 phase/no Post cannot or will not be acted on

Comments

@fabriqbruno
Copy link

fabriqbruno commented Apr 29, 2024

Initial checklist

Affected packages and versions

latest

Link to runnable example

import rehypeStringify from "rehype-stringify";
import remarkParse from "remark-parse";
import remarkRehype from "remark-rehype";
import { unified } from "unified";

export const markdownToHtml = (markdown: string) => {
  const result = unified().use(remarkParse).use(remarkRehype).use(rehypeStringify).processSync(markdown);
  return result.toString();
};

Steps to reproduce

convert *i****b****i* to html

Node 20.12.2

Expected behavior

output: ibi

https://spec.commonmark.org/dingus/?text=*i****b****i*

Actual behavior

output: ib**i

Runtime

No response

Package manager

npm 8

OS

Windows

Build and bundle tools

Next.js

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Apr 29, 2024
Copy link

Hi! Thanks for taking the time to contribute!

Because we treat issues as our backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn’t an exact duplicate but is closely related.

Thanks,
— bb

@ChristianMurphy
Copy link
Member

Duplicate of micromark/micromark#162

@ChristianMurphy ChristianMurphy marked this as a duplicate of micromark/micromark#162 Apr 29, 2024
@ChristianMurphy ChristianMurphy closed this as not planned Won't fix, can't repro, duplicate, stale Apr 29, 2024

This comment has been minimized.

@github-actions github-actions bot added 👎 phase/no Post cannot or will not be acted on and removed 🤞 phase/open Post is being triaged manually labels Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👯 no/duplicate Déjà vu 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

2 participants