Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

171
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!