Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

172
Visualizações
How to avoid converting plain non-markdown text to HTML in commonmarkjs?

Suppose there is a set of texts ready to be parsed through commonmarkjs. A few among them have markdown and most of them are plain non-markdown text, which doesn't need conversion. Is there any way we could avoid converting plain non-markdown text to HTML and only convert the markdown texts? I have given a few examples below:

  • urls, e.g. My favourite search engine is [Duck Duck Go](https://duckduckgo.com).
  • unordered lists, e.g. - First item
  • bold, e.g. I just love **bold text**.
  • italic, e.g. Italicized text is the *cat's meow*.
  • headings, e.g. ## Heading level 2

These set of texts should be converted to HTML

  • My favourite search engine is Duck Duck Go
  • First item
  • I just love bold text
  • Italicized text is the cat's meow.
  • Heading level 2

These set of texts should not be converted to HTML (as they don't have markdown)

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda