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

189
Views
Convert markdown linked .md to .html

I am using marked cli to convert my markdown file to html file.

I want to convert hyper linked markdown file (.md) to (.html)

Current output:

$ echo "[test](./doc/test.md)" | marked
<p><a href="./doc/test.md">test</a></p>

Expected output:

$ echo "[test](./doc/test.md)" | marked --some-option
<p><a href="./doc/test.html">test</a></p>

Is there any option to get the required output. I can use the marked lib with JavaScript if there is an option in that.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Looking at marked documentation, there isn't any build in way of changing URLs.


I'd recommend using sed to change every .md"> to .html"> like so:

echo "[test](./doc/test.md)" | marked | sed -e 's/\.md\"\>/.html">/g'
about 4 years ago · Juan Pablo Isaza Report
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!