Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
57 views

I have written the following markdown for an image: ![alt-text]({urlVar}) With the intent that the output html is further processed with the url injected through a template system. So, my desired ...
Wilduck's user avatar
  • 14.2k
0 votes
0 answers
50 views

I am using Marked.js for parsing Markdown. The original Markdown language does not support different ordered list styles, for instance, lettered ones, like HTML. I would like to introduce this ...
SCMS's user avatar
  • 61
0 votes
0 answers
99 views

I've seen the docs https://marked.js.org/using_pro#renderer and it has no example for the list i want to customize more detail https://github.com/markedjs/marked/blob/master/src/Tokens.ts#L137 as the ...
zummon's user avatar
  • 996
1 vote
0 answers
556 views

I write publications in markdown and use marked.js to display them on my blog. The blog uses custom image gallery components, audio and video players, etc. There are several simple marked.js ...
Kasheftin's user avatar
  • 9,953
1 vote
1 answer
349 views

I am using merkedjs, heighlight.js and marked-heighlight for a vue markdown editor (just some project to learn the composition-api). The markdown is parsed by markedjs and code is inside a <code>...
s4timuen's user avatar
1 vote
1 answer
1k views

I try to use tailwind typography for change HTML more beautiful but I want to highlight code syntax when it have <code> tag how can I use highlight js to highlight code block in my markdown now ...
anina's user avatar
  • 23
0 votes
1 answer
241 views

simply if I used this code the extension is working fine const originalText = '## hello world'; marked.use(gfmHeadingId()); const text = marked.parse(originalText); console.log('text') // <h2 id=&...
Robert's user avatar
  • 2,910
0 votes
0 answers
23 views

I want to import the Marked libary but it says: Cannot find module 'node_modules/marked/lib/marked.esm.js' or its corresponding type declarations.ts(2307) This is my Svelte code: <script lang="...
Clay.Lente's user avatar
0 votes
1 answer
1k views

I have a project based on Angular 15 in which i recently added marked. My idea was to use it for a angular pipe to transform MarkDown text to HTML. However, there is no way i get it working, it doesn'...
jlapuente's user avatar
1 vote
0 answers
149 views

I'm trying to render user input using SvelteMarkdown (that uses marked). The steps are: user input is sanitized using sanitizeHtml sanitized user input goes to SvelteMarkdown to be rendered in html ...
Milano's user avatar
  • 18.9k
0 votes
2 answers
2k views

When I have a markdown file with: ![[20230613_110437.jpg]] in it, and I render it to html with const html = marked.parse(content); the html content just contains ![[20230613_110437.jpg]] rather than ...
RobKohr's user avatar
  • 6,954
0 votes
1 answer
131 views

How to customize marked to make it rendering <h2> tags and following elements in a <section>. If a new <h2> tag appears afterwards, wrap everything in a new <section> again. ...
wenzf's user avatar
  • 495
3 votes
1 answer
3k views

I'm trying to compile my Angular app using ng serve The error I receive is Error: Can't resolve 'node_modules/marked/lib/marked.js' in 'C:\ProjectName' The error doesn't tell me what file it is ...
Tyson Boyce's user avatar
10 votes
3 answers
12k views

I have a vue/vie project in which I'm trying to read a markdown file I have into html using marked. I attempted to use the fetch api to import it as a string, but only because I couldn't figure out ...
readf0x's user avatar
  • 165
0 votes
1 answer
913 views

I know this question has been asked before, but I seem to have a slightly different problem (at least, the solution provided in similar questions don't work for me). The project is using Angular 12, ...
gizmo's user avatar
  • 131
3 votes
2 answers
354 views

How can one display the contents of a GitHub Gist while parsing a markdown file client-side using Marked.js or with any other client Markdown library? The code below renders the Markdown file except ...
Ayan Mullick's user avatar
0 votes
1 answer
708 views

I am trying to render some markdown in my Svelte app but am having trouble rendering with marked. I have install locally via npm and marked is present in my package.config. Also when I access marked I ...
3therk1ll's user avatar
  • 2,511
0 votes
1 answer
478 views

One can render a Markdown file on a static site client-side using the code below. <div id="txt"></div> <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script&...
Ayan Mullick's user avatar
0 votes
0 answers
378 views

I use Marked library in a React project and would like to set the option "gfm: true" and "breaks: true". Based on example provided on the official website I think I am doing the ...
Reggroy's user avatar
  • 53
0 votes
3 answers
11k views

I currently have some code that uses marked.js to transform one big markdown string (read from a .md file) into html for display on the browser. 'md' is the markdown string and calling 'marked(md)' ...
Barry's user avatar
  • 286
0 votes
1 answer
253 views

Trying to make a Markdown Previewer for a freeCodeCamp project. My editor was working fine, but now I can't update the markdown in my state; it's stuck on the placeholder text I wrote. Whenever I try ...
Harry Smith's user avatar
1 vote
1 answer
2k views

Markdown file --- title: 'Testing Second Blog Post' date: 'May 2 2022' excerpt: 'This is the excerpt' cover_image: '/images/posts/test.jpeg' --- # Basics of Markdown Markdown is the most popular ...
Fu Nian Wong's user avatar
  • 1,182
5 votes
4 answers
31k views

I was performing a headless test in Cypress and had to run npm install --save-dev start-server-and-test so the server can start and wait for the url to respond before running the test. And ever since ...
ITselect's user avatar
  • 183
0 votes
2 answers
3k views

I want to render markdown in my component, which usually can be done with the marked library which can be installed like so: yarn add marked and used in a component like so: <template> <...
Artur Müller Romanov's user avatar
0 votes
1 answer
522 views

My problem, which I cannot overcome is that I cannot achieve a state where I have 2 parallel instances oh markedjs which work fully independently in terms of configuration I am passing through. In ...
Mateusz Osuch's user avatar
0 votes
2 answers
1k views

I'm using marked.js to render code that we want to store (ultimately as JSON). However, the I can't get triple-back-ticked convention to render correctly. I'm sure user error on my part but how would ...
timpone's user avatar
  • 20.1k
0 votes
1 answer
542 views

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>...
Gagan's user avatar
  • 1,343
11 votes
2 answers
9k views

I'm trying to build a markdown previewer using react and the marked node package. Everything works up to when I try to parse any markdown on the DOM. When I do I get an error message: Uncaught ...
Holger Mueller's user avatar
1 vote
1 answer
4k views

I have tried to use marked plugin in my Vue.js apps. Installed [email protected], compiled is nothing problem. But in browser, any contents showed. I used vite to make Vue project. Also, I referred this ...
drunkdolphin's user avatar
5 votes
1 answer
9k views

One can follow the Marked library documentation and render a Markdown string inline. This is a working code snippet. <div id="content"></div> <script src="https://cdn.jsdelivr.net/...
Ayan Mullick's user avatar
0 votes
2 answers
2k views

I am buiding a simple markdown previewer in JS I have: Installed the library by running npm i marked in the app folder (I double checked the nodes_package folder and a marked folder was indeed ...
double-dash-deli's user avatar
0 votes
1 answer
545 views

I am using React and Marked for a markdown previewer in Codepen.io. Here's a link to my project and JavaScript code: https://codepen.io/lengvarskyj/pen/bGrrqeg const initialState = ` # Heading 1 ## ...
LengvarskyJ's user avatar
5 votes
2 answers
2k views

I am working on a Vue + Nuxt + Tailwind project and using the marked library to convert a text into markdown. The issue is that some styles like "Headings" and "Link" are loading ...
sarthakgupta072's user avatar
0 votes
0 answers
32 views

I'm working with React on VS Code after loading the template with npx create-react-app app I'm trying to add a CDN Marked 2.1.3 but I don't know where to put it. Normally with regular html, css, ...
Onyedikachi Onu's user avatar
1 vote
2 answers
429 views

I'm trying to pass a Freecodecamp project. The project is a markdown previewer where you can enter code in a textarea and it renders it on the webpage. I have all the tests passing except two. It ...
idkwhatimdoing's user avatar
0 votes
2 answers
922 views

I'm having these options to configure my marked object but the tables are not getting rendered with proper css. { gfm: true, tables: true, breaks: false, pedantic: ...
Lavish Kothari's user avatar
14 votes
3 answers
20k views

Our application is build using Material-UI library (with themes). As part of this app we are parsing markdown to html (marked library). How can you apply material-ui themes ( Typography ) to a pure ...
ic3's user avatar
  • 7,740
0 votes
1 answer
831 views

I'm using marked.js to create posts using markdown. The posts are created successfully with markdown and the html is being displayed however when I update / edit posts, sanitizedHtml is not being ...
SK1dev's user avatar
  • 1,139
0 votes
1 answer
139 views

I have a question regarding Node, Pug and Marked. I have one, specific place where I'll be adding reports and I'd like them to have simple formatting (bold, links etc). It seems that everything is ...
PRvn's user avatar
  • 51
0 votes
3 answers
566 views

I am implementing a custom render function for marked which will check a few conditions on images, does an async request and then returns an image from a different source. However, since the new ...
kolaente's user avatar
  • 1,332
4 votes
4 answers
4k views

I'm using Evan You's example of how to convert HTML to markdown - https://jsfiddle.net/yyx990803/oe7axeab/. Installing the marked package through npm and then implementing this leads to the error, '...
wilcode's user avatar
  • 625
9 votes
1 answer
2k views

I require a relatively simple markdown parser for my application. Just simple stuff like bolding, italics, etc. I was looking around for libraries and many seem to be quite large. For example, marked ...
Ryan Peschel's user avatar
3 votes
2 answers
3k views

I'm using marked.js through nunjucks-markdown to render markdown in a node/express app. The markdown content is being rendered fine, however, I want to set default classes on the ul element. By ...
Codesight's user avatar
  • 327
1 vote
1 answer
705 views

i'm using the marked.js library to parse input from a textarea into html . in markdown a task syntax is written like this : - [x] done task or - [ ] not done task . result after parsing : <ul>...
soufiane yakoubi's user avatar
8 votes
1 answer
5k views

I am using the markedjs markdown parser on my website, but the table syntax didn't style the right way (no borders and stripes). My code: <!doctype html> <html> <head> &...
neifnei's user avatar
  • 115
12 votes
1 answer
9k views

How do you use npm Marked with HighlightJS? I'm trying to automate my docs to be parsed and styled. Looking at the following example from marked docs: // Using async version of marked marked(...
jtlindsey's user avatar
  • 4,913
3 votes
2 answers
807 views

I'd like markdown links to have a favicon within the transformed link. https://www.google.com/s2/favicons?domain=http://cnn.com - will return the favicon from any domain. Marked (https://github.com/...
mrmccormack's user avatar
1 vote
0 answers
46 views

I added script for converting text to markdown display. Added "content-markdown" class to my div of content but my first line of the text always is being surrounded by <pre> and <code> ...
user avatar
0 votes
0 answers
28 views

A XSS vulnerability was fixed in the marked library, with no new version yet bumped to npm. What are my options here to update my application with this fix (i.e. applying the fix, without manually ...
MattV's user avatar
  • 1,383
3 votes
2 answers
3k views

I am fetching strings with markdown from api and trying to use them in react-native project. Is there any similar library to marked that can be used in react-native or what is the best practice to ...
matejs's user avatar
  • 163