Questions tagged [markdown-it]

Use this tag to refer to the pluggable markdown parser for JS "markdown-it".

markdown-it is a markdown parser, with CommonMark support and syntax extensions, built in JavaScript. It has MIT license.

41 questions
8
votes
2 answers

Rich content in Strapi rendering with no space between paragraphs

I'm using markdown-it with nuxt to render my article content (rich text) to html from strapi. The text renders but the spacing between paragraphs is not included. I can use
tag on rich text editor on strapi to create line breaks but shouldn't…
Marvin
  • 103
  • 1
  • 8
5
votes
1 answer

Is there a way to use a tmLanguage grammar to extend vscode integrated markdown extensions syntax highlighting?

I am working on a language extension for vscode. I defined a tmLanguage file and everything works nicely. In the hover feature, using vscode.MarkdownString.appendCodeblock() the markdown is being interpreted correctly and syntax highlighting for my…
5
votes
1 answer

How to use markdown-it plugins options in nuxt.js

I'm using @nuxtjs/markdownit to parse markdown files, I want to enable creating permanent links feature in 'markdown-it-anchor' plugin, I used following code in nuxt.config.js but not working: modules: [ // Doc: https://axios.nuxtjs.org/usage …
Horizon
  • 324
  • 1
  • 3
  • 11
2
votes
1 answer

Vue3-markdown-it not working with Vuetify 3 Stylesheet

As title says, String formatting using Vue3-markdown-it library is not working with Vuetify 3 styles. Just to find the root cause, As part of reproduceable demo, Below codesandbox links has been created : Without Vuetify 3 Stylesheet - Working as…
Debug Diva
  • 26,058
  • 13
  • 70
  • 123
2
votes
1 answer

How can Tailwind/typography work well with markdown-it in a React project?

I'm attempted to develop a new feature for my blog, that is a Markdown editor for writing articles. I chosed @tailwindcss/typography and markdown-it to do that, so this is my whole dependencies: package.json { "dependencies": { "firebase":…
Macro
  • 71
  • 1
  • 9
2
votes
2 answers

Highlight code with Markdown-it.js and Highlight.js

In the current example, a Markdown snippet is ported to HTML and the output is shown in the DIV (ID Content). The highlight function (hljs.highlight) is set to the options markdown-it (md). However, this is not carried out. What do I have to change…
Mario
  • 23
  • 1
  • 4
2
votes
0 answers

Highlight js applies classes but not styles

It seems like highlight.js applies classes to my content, but not styles. I'm using React, TypeScript and markdown-it. Here are my changes to package.json: "dependencies": { "highlight.js": "^9.12.0", "devDependencies": { …
user1283776
  • 19,640
  • 49
  • 136
  • 276
1
vote
0 answers

Vscode extension with katex in hover

I had an idea to develop a simple extension for vscode that will help me to display math functions written in latex when I hover over python's comment. Simple example: # $y = x^2$ y = x ** 2 Even though vscode.Hover supports markdown (example),…
1
vote
0 answers

markdown-it can not escape ampersand character

I have tried to parse HTML content using Markdown-it with following lines in head section
dudung
  • 499
  • 2
  • 17
1
vote
1 answer

How to enable dark mode for markdown-it-vue plugin with vuetify

I'm trying to show some documentation in my Vue application. Since they are based on markdown format, I have already included the markdown-it-vue plugin. However, the plugin does not support the vuetify dark mode. Is there any way to support that?…
1
vote
1 answer

Excluding URLs/Images in markdown from string Regular Expression operation

I'm building an application where users highlight and scroll to words in an article they write in search bar. articles come in a Markdown format and I'm using a Markdown-it to render article body. It works well except for if the word they search for…
1
vote
1 answer

Show markdown file in vuejs (markdown provided via backend link)

the markdown file link: http://127.0.0.1:8000/media/uploads/content/test_y4O7oOS.md vue template: vue…
i Osama
  • 17
  • 4
1
vote
2 answers

Markdown-it not working with Nuxt & contentful, throwing errors

I am Building a site using Contentful and have followed different guides and configurations. No matter what I do I can't seem to get a basic example of markdownit working. I keep getting an error: Property or method "$md" is not defined on the…
T.Ulman
  • 21
  • 5
1
vote
1 answer

With @nuxtjs/markdownit, how can I resolve a image file in XXX.md file

I apply markdown in nuxt vue this way.