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

264
Views
Rendering .md files in html using marked.js

I am trying to render a markdown file (.md) in a <body> component of an html page. I came across marked.js.

The documentation presents the following usage:

marked.parse('# Marked in the browser\n\nRendered by **marked**.');

Which works well for what I want to do (it renders the markdown in html format). However, I'd like the input into the marked.parse call to be a .md file such that I don't have to write all of the content between simple quote barriers.

I tried:

marked.parse(src='file.md');

and

marked.parse('href=file.md');

but this didn't work.

Any advice?

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!