All Projects → remarkjs → Remark Defsplit

remarkjs / Remark Defsplit

Licence: mit
plugin to change links and images to references with separate definitions

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Remark Defsplit

Remark Reference Links
plugin to transform links and images into references and definitions
Stars: ✭ 8 (+14.29%)
Mutual labels:  markdown, reference, link
Mybox
Easy tools of document, image, file, network, location, color, and media.
Stars: ✭ 45 (+542.86%)
Mutual labels:  markdown, image
Markdown Img Paste
一个可以快速粘贴剪贴板里的照片到markdown的插件,并且可以设置使用七牛存储照片。
Stars: ✭ 176 (+2414.29%)
Mutual labels:  markdown, image
Qimage Mac
Mac 版本的 Markdown 一键贴图工具,基于 Alfred 实现,支持本地文件、截图、网络图片一键上传七牛云,使用简单方便
Stars: ✭ 99 (+1314.29%)
Mutual labels:  markdown, image
SmartReplace
Unity plug-in for replacing scene objects while keeping their references.
Stars: ✭ 50 (+614.29%)
Mutual labels:  reference, link
Qimage Win
Windows 版本 Markdown 一键贴图工具,支持本地文件、截图、网络图片一键上传七牛云并返回图片引用,让 Markdown 中贴图变成一种享受。
Stars: ✭ 196 (+2700%)
Mutual labels:  markdown, image
Jekyll Spaceship
🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
Stars: ✭ 196 (+2700%)
Mutual labels:  markdown, image
Vscode Paste Image
paste image from clipboard to markdown/asciidoc directly!
Stars: ✭ 236 (+3271.43%)
Mutual labels:  markdown, image
remark-bookmarks
plugin to manage links
Stars: ✭ 15 (+114.29%)
Mutual labels:  reference, link
Docma
A powerful tool to easily generate beautiful HTML documentation from JavaScript (JSDoc), Markdown and HTML files.
Stars: ✭ 287 (+4000%)
Mutual labels:  markdown, reference
Marked
Markdown rendering as a service.
Stars: ✭ 19 (+171.43%)
Mutual labels:  markdown
Nyx
A simple imageboard with no javascript or dependencies written in Go
Stars: ✭ 19 (+171.43%)
Mutual labels:  image
Easy Pandoc Templates
A collection of portable pandoc templates with no dependencies
Stars: ✭ 23 (+228.57%)
Mutual labels:  markdown
Watimage
🖼 PHP image manipulation class
Stars: ✭ 25 (+257.14%)
Mutual labels:  image
Exhibit
Exhibit is a managed screensaver App for tvOS.
Stars: ✭ 19 (+171.43%)
Mutual labels:  image
Py Style Transfer
🎨 Artistic neural style transfer with tweaks (pytorch).
Stars: ✭ 23 (+228.57%)
Mutual labels:  image
Mdx linkify
Link recognition for Python Markdown
Stars: ✭ 18 (+157.14%)
Mutual labels:  markdown
Phd thesis markdown
Template for writing a PhD thesis in Markdown
Stars: ✭ 898 (+12728.57%)
Mutual labels:  markdown
Umbraco Nexu
Umbraco package that let's you track internal links in Umbraco
Stars: ✭ 18 (+157.14%)
Mutual labels:  link
Mdviewer
Minimalistic Markdown viewer/converter with built-in Css stylesheets support.
Stars: ✭ 26 (+271.43%)
Mutual labels:  markdown

remark-defsplit

Build Coverage Downloads Size Sponsors Backers Chat

remark plugin to change links and images to references with separate definitions.

Install

npm:

npm install remark-defsplit

Use

Say we have the following file, example.md.

[![Build Status](https://travis-ci.org/remarkjs/remark-defsplit.svg?branch=master)](https://travis-ci.org/remarkjs/remark-defsplit)

And our script, example.js, looks as follows:

var vfile = require('to-vfile')
var remark = require('remark')
var defsplit = require('remark-defsplit')

remark()
  .use(defsplit, {id: ['travis-badge', 'travis']})
  .process(vfile.readSync('example.md'), function(err, file) {
    if (err) throw err
    console.log(String(file))
  })

Now, running node example yields:

[![Build Status][travis-badge]][travis]

[travis-badge]: https://travis-ci.org/remarkjs/remark-defsplit.svg?branch=master

[travis]: https://travis-ci.org/remarkjs/remark-defsplit

API

remark().use(defsplit[, options])

Change links and images to references with separate definitions.

options.id

Identifiers to use for new definitions instead of autogenerated ones (string or Array.<String>, default: []).

Security

Use of remark-defsplit does not involve rehype (hast) or user content so there are no openings for cross-site scripting (XSS) attacks.

Related

  • remark-reference-links — Practically the same as remark-defsplit, but with numeric identifiers instead of URI-based ones
  • remark-inline-links — Reverse, thus rewriting references and definitions into links and images

Contribute

See contributing.md in remarkjs/.github for ways to get started. See support.md for ways to get help.

This project has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.

License

MIT © Eugene Sharygin

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].