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

265
Visualizações
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
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