{"id":16880078,"url":"https://github.com/mb21/markdown-it-pandoc","last_synced_at":"2025-03-23T16:33:00.601Z","repository":{"id":33521759,"uuid":"159161882","full_name":"mb21/markdown-it-pandoc","owner":"mb21","description":"Package bundling a few markdown-it plugins to approximate pandoc flavoured markdown","archived":false,"fork":false,"pushed_at":"2025-03-21T07:14:13.000Z","size":15,"stargazers_count":14,"open_issues_count":4,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-21T07:15:14.604Z","etag":null,"topics":["markdown","markdown-it"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mb21.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-26T11:55:01.000Z","updated_at":"2025-03-21T07:14:16.000Z","dependencies_parsed_at":"2023-01-15T01:16:42.171Z","dependency_job_id":null,"html_url":"https://github.com/mb21/markdown-it-pandoc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mb21%2Fmarkdown-it-pandoc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mb21%2Fmarkdown-it-pandoc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mb21%2Fmarkdown-it-pandoc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mb21%2Fmarkdown-it-pandoc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mb21","download_url":"https://codeload.github.com/mb21/markdown-it-pandoc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245131375,"owners_count":20565814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["markdown","markdown-it"],"created_at":"2024-10-13T15:57:12.698Z","updated_at":"2025-03-23T16:33:00.591Z","avatar_url":"https://github.com/mb21.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markdown-it-pandoc\n\nPackage bundling a few [markdown-it](https://github.com/markdown-it/markdown-it)\nplugins to approximate [pandoc flavoured markdown](http://pandoc.org/MANUAL.html#pandocs-markdown).\n\nFor a demo, you can try [PanWriter](https://panwriter.com).\n\n## Dependencies\n\nThis package requires a lot of peer dependencies, depending on which extensions you enable.\nFor up-to-date information, it is probably best to take a quick look at [the source](./index.js).\n\n| Options                          | Plugin dependency            |\n|----------------------------------|------------------------------|\n| `bracketed_spans` + `attributes` | markdown-it-bracketed-spans  |\n| `attributes`                     | markdown-it-attrs            |\n| `fenced_divs` + `attributes`     | markdown-it-container        |\n| `definition lists`               | markdown-it-deflist          |\n| `footnotes`                      | markdown-it-footnote         |\n| `implicit_figures`               | markdown-it-implicit-figures |\n| `grid_tables`                    | markdown-it-gridtables       |\n| `subscript`                      | markdown-it-sub              |\n| `superscript`                    | markdown-it-sup              |\n| `task_lists`                     | markdown-it-task-lists       |\n| `katex`                          | markdown-it-texmath, katex   |\n| `tex_math_dollars`               | markdown-it-texmath, katex   |\n| `tex_math_single_backslash`      | markdown-it-texmath, katex   |\n| `mathjax`                        | markdown-it-mathjax3         |\n| `highlight`                      | markdown-it-highlightjs      |\n| `highlight_inline`               | markdown-it-highlightjs      |\n## Usage\n\n```javascript\nvar md = require('markdown-it')();\nrequire('markdown-it-pandoc')(md);\nmd.render('my markdown string');\n```\n\nThere is an optional second argument to enable/disable `markdown-it-pandoc` extensions. For example:\n\n```javascript\nvar md = require('markdown-it')({ html: true });\nrequire('markdown-it-pandoc')(md, { implicit_figures: false });\nmd.render('my markdown string');\n```\n\nOr using import syntax:\n\n```javascript\nimport markdownIt from 'markdown-it'\nimport markdownItPandoc from 'markdown-it-pandoc'\n\nconst md = markdownItPandoc(\n  markdownIt({ html: true }),\n  { implicit_figures: false }\n);\nmd.render('my markdown string');\n```\nNote that MathJax and KaTeX are exclusive features.\nYou cannot set both options true.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmb21%2Fmarkdown-it-pandoc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmb21%2Fmarkdown-it-pandoc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmb21%2Fmarkdown-it-pandoc/lists"}