Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

168
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda