Giter VIP home page Giter VIP logo

mdit-plugins's Introduction

markdown-it plugin collections

Some awesome markdown-it plugin written in typescript✨

Author: Mr.Hope License Open in Visual Studio Code

DeepScan grade CodeQL code cov Test

Contact

We recommend you to contact using issues and discussions.

Details

This repo contains the following plugins:

  • @mdit/plugin-abbr
  • @mdit/plugin-alert
  • @mdit/plugin-align
  • @mdit/plugin-attrs
  • @mdit/plugin-container
  • @mdit/plugin-demo
  • @mdit/plugin-figure
  • @mdit/plugin-footnote
  • @mdit/plugin-img-lazyload
  • @mdit/plugin-img-mark
  • @mdit/plugin-img-size
  • @mdit/plugin-include
  • @mdit/plugin-ins
  • @mdit/plugin-katex
  • @mdit/plugin-katex-slim
  • @mdit/plugin-mark
  • @mdit/plugin-mathjax
  • @mdit/plugin-mathjax-slim
  • @mdit/plugin-plantuml
  • @mdit/plugin-ruby
  • @mdit/plugin-snippet
  • @mdit/plugin-spoiler
  • @mdit/plugin-stylize
  • @mdit/plugin-sub
  • @mdit/plugin-sup
  • @mdit/plugin-tab
  • @mdit/plugin-tasklist
  • @mdit/plugin-tex
  • @mdit/plugin-uml

Project Status

Status

Contributors

Thanks to all the contributors!

contributors

mdit-plugins's People

Contributors

dependabot[bot] avatar mister-hope avatar renovate[bot] avatar yyolk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mdit-plugins's Issues

[Feature Request] Configurable input regex for Include

Checklist

  • I searched existing issues and no one else requests similar feature.
  • I think that 25%+ users are positive towards this feature.

Describe the feature

I'd find it very useful if the input regex (now INCLUDE_RE) in the Input plugin was configurable. The practical problem being that an html comment doesn't show up at all in a standard markdown renderer, nor there is an LSP server here, so I just miss pieces if I view the .md files directly...

Additional context

This seems a relatively easy extension (as well as without any backwards compatibility issues). I'd be glad to do it myself and get it to a pull request if helpful. OTOH, I am quite new to this library and to markdown-it overall: if there is a bigger picture, please feel free to point it out.

[Feature Request] mdit-plugin-columns

Checklist

  • I searched existing issues and no one else requests similar feature.
  • I think that 25%+ users are positive towards this feature.

Describe the feature

Embed multiple columns in a row, evenly dividing the column width.

Additional context

Bloggers often find it convenient to arrange several images in a row.
A container with uniform column width would be of great help.

Markdown table struggles with this task due to self-adaption column width and borders.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

github-actions
.github/workflows/codeql-analysis.yml
  • actions/checkout v3
  • github/codeql-action v2
  • github/codeql-action v2
  • github/codeql-action v2
.github/workflows/docs.yml
  • actions/checkout v3
  • pnpm/action-setup v2
  • actions/setup-node v3
  • JamesIves/github-pages-deploy-action v4
.github/workflows/issue-daily.yml
  • actions-cool/issues-helper v3
  • actions-cool/issues-helper v3
  • actions-cool/issues-helper v3
.github/workflows/issue-labeled.yml
  • actions-cool/issues-helper v3
  • actions-cool/issues-helper v3
.github/workflows/test.yml
  • actions/checkout v3
  • pnpm/action-setup v2
  • actions/setup-node v3
  • codecov/codecov-action v3
npm
docs/package.json
  • @vuepress/client 2.0.0-beta.60
  • @vuepress/markdown 2.0.0-beta.60
  • @vuepress/utils 2.0.0-beta.60
  • vue 3.2.45
  • vuepress 2.0.0-beta.60
  • vuepress-plugin-search-pro 2.0.0-beta.154
  • vuepress-shared 2.0.0-beta.154
  • vuepress-theme-hope 2.0.0-beta.154
package.json
  • @commitlint/cli 17.4.0
  • @commitlint/config-conventional 17.4.0
  • @rollup/plugin-commonjs 24.0.0
  • @rollup/plugin-node-resolve 15.0.1
  • @types/inquirer 9.0.3
  • @types/node 18.11.18
  • @typescript-eslint/eslint-plugin 5.48.0
  • @typescript-eslint/parser 5.48.0
  • @vitest/coverage-c8 0.26.3
  • @vue/eslint-config-typescript 11.0.2
  • bumpp 8.2.1
  • commit-and-tag-version 10.1.0
  • commitizen 4.2.6
  • cross-env 7.0.3
  • cz-git 1.4.1
  • esbuild 0.16.16
  • eslint 8.31.0
  • eslint-config-prettier 8.6.0
  • eslint-plugin-prettier 4.2.1
  • eslint-plugin-vue 9.8.0
  • execa 6.1.0
  • husky 8.0.3
  • inquirer 9.1.4
  • markdownlint-cli 0.33.0
  • nano-staged 0.8.0
  • ora 6.1.2
  • picocolors 1.0.0
  • prettier 2.8.2
  • rimraf 3.0.2
  • rollup 3.9.1
  • rollup-plugin-dts 5.1.1
  • rollup-plugin-esbuild 5.0.0
  • sort-package-json 2.1.0
  • tslib 2.4.1
  • tsx 3.12.2
  • typescript 4.9.4
  • vitest 0.26.3
  • node >=14.18.0
  • npm >=8
  • pnpm >=7
  • pnpm 7.23.0
packages/align/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
  • node >= 14
packages/attrs/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
  • node >= 14
packages/container/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
  • node >= 14
packages/figure/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
  • node >= 14
packages/footnote/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
  • node >= 14
packages/img-lazyload/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
  • node >= 14
packages/img-mark/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
  • node >= 14
packages/img-size/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
  • node >= 14
packages/include/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
  • upath ^2.0.1
packages/katex/package.json
  • @types/katex ^0.16.0
  • @types/markdown-it ^12.2.3
  • katex ^0.16.4
  • markdown-it ^13.0.1
  • node >= 14
packages/mark/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
  • node >= 14
packages/mathjax/package.json
  • @types/markdown-it ^12.2.3
  • mathjax-full ^3.2.2
  • markdown-it ^13.0.1
  • upath ^2.0.1
  • node >= 14
packages/snippet/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
  • upath ^2.0.1
packages/stylize/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
  • node >= 14
packages/sub/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
  • node >= 14
packages/sup/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
  • node >= 14
packages/tab/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
packages/tasklist/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
  • node >= 14
packages/tex/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
  • node >= 14
packages/uml/package.json
  • @types/markdown-it ^12.2.3
  • markdown-it ^13.0.1
  • node >= 14

  • Check this box to trigger a request for Renovate to run again on this repository

希望支持一种新的语法来实现选项卡的嵌套

Checklist

  • I searched existing issues and no one else requests similar feature.
  • I think that 25%+ users are positive towards this feature.

Describe the feature

语法大概这样,用英文感叹号来标识分栏的分割位置,惊叹号的数量需要和冒号的数量一致,:::tabs 对应 !!!tab,其实也可以用@@@tab指令, 但是感觉在非等宽的字体中,@会比!看起来要宽一些。


:::tabs

!!!tab 第1栏标题

内容1

!!!tab 第2栏标题

::::::tip 提示

这是内容2,其实主要就是想在选项卡中嵌套提示。

::::::

::::::tabs

!!!!!!tab 第2.1栏标题

内容2.1

!!!!!!tab 第2.2栏标题

内容2.2

::::::

:::

Additional context

No response

[Feature Request] : Support GFM Alerts / Notes

Checklist

  • I searched existing issues and no one else requests similar feature.
  • I think that 25%+ users are positive towards this feature.

Describe the feature

Support GFM Alerts / Notes

GFM allow for markup such as :

Important

This is an important note

Warning

This is a warning

> [!Important]
> This is an important note

> [!Warning]
> This is a warning

https://github.com/orgs/community/discussions/16925

It is not the same format used by the containers plugin : https://mdit-plugins.github.io/container.html

Additional context

Reference - It should be a plugin : markdown-it/markdown-it#974 (comment)

No response

[Bug] Equations should be reset on each document render

Package name

@md-it/plugin-mathjax

Describe the bug

When calling mardownIt.render on different markdown documents with equation label, errors like this will be shown:

Label 'eq:m1' multiply defined

So the plugin needs a new api to switch to a new page while preserving style cache.

Related issues:

Related docs:

Additional context

No response

[Feature Request] forem-style liquid embed

Checklist

  • I searched existing issues and no one else requests similar feature.
  • I think that 25%+ users are positive towards this feature.

Describe the feature

I know you are already looking at the Alert/Notes tags, but i have another plugin suggestion, that should be quite simple.

Forem editor (dev.to) supports Liquid tags for embeds

https://developers.forem.com/frontend/liquid-tags

Examples :

{% podcast https://dev.to/basecspodcast/s2e2--queues-irl %}
{% twitter 834439977220112384 %}
{% glitch earthy-course %}
{% github forem/forem %}
{% youtube dQw4w9WgXcQ %}
{% vimeo 193110695 %}

Essentually this is {% token ref %}

Could we have a markdown-it plugin which can parse these - and in the plugin setup/config then provide a callback the user can use to allow for custom embeds?

This would allow users to develop their own simple embeds, for custom services, without the need for a seperate plugin for each one.

eg: (EXAMPLE ONLY)

config : {
  liquidtags : [
  { 
     token : "youtube",
     fn : (ref) => {
      return `<iframe src="http://youtube.com/${ref}"/>`
    }
  },
  { 
     token : "github",
     fn : (ref) => {
      return `<a href='ref'> Go to github link </a>`
    }
  },
{ 
     token : "myCustomToken",
     fn : (ref) => {
      return `<marqee> %{ref} </marqee>`
    }
  }
}

Additional context

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.