remarkjs / Remark Reference Links
Licence: mit
plugin to transform links and images into references and definitions
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Remark Reference Links
Remark Defsplit
plugin to change links and images to references with separate definitions
Stars: ✭ 7 (-12.5%)
Mutual labels: markdown, reference, link
SmartReplace
Unity plug-in for replacing scene objects while keeping their references.
Stars: ✭ 50 (+525%)
Mutual labels: reference, link
Docma
A powerful tool to easily generate beautiful HTML documentation from JavaScript (JSDoc), Markdown and HTML files.
Stars: ✭ 287 (+3487.5%)
Mutual labels: markdown, reference
Fastmatter
👀 A fast frontmatter parser. Supports both string and stream inputs.
Stars: ✭ 25 (+212.5%)
Mutual labels: markdown
Umbraco Nexu
Umbraco package that let's you track internal links in Umbraco
Stars: ✭ 18 (+125%)
Mutual labels: link
Edinote
Note taking web application for self-hosting. Offers tagging & Markdown support; can be used as a simple alternative to Evernote.
Stars: ✭ 17 (+112.5%)
Mutual labels: markdown
Easy Pandoc Templates
A collection of portable pandoc templates with no dependencies
Stars: ✭ 23 (+187.5%)
Mutual labels: markdown
Gridsome Starter Liebling
Grisome starter based on Ghost Liebling and tailwindcss.
Stars: ✭ 23 (+187.5%)
Mutual labels: markdown
Markdown2document
turn markdown files to a PDF or HTML document
Stars: ✭ 22 (+175%)
Mutual labels: markdown
Phd thesis markdown
Template for writing a PhD thesis in Markdown
Stars: ✭ 898 (+11125%)
Mutual labels: markdown
Markitdown
📱 A React app to preview and edit Markdown✍. You can also export it as HTML.
Stars: ✭ 26 (+225%)
Mutual labels: markdown
Crisscross
A Markdown-centric template engine for batch offline document generation.
Stars: ✭ 18 (+125%)
Mutual labels: markdown
Markdown Guide
The comprehensive Markdown reference guide.
Stars: ✭ 835 (+10337.5%)
Mutual labels: markdown
React Markings
**Markdown** in <Components/>, <Components/> in **Markdown**
Stars: ✭ 893 (+11062.5%)
Mutual labels: markdown
Remark Textr
plugin to make your typography better with Textr
Stars: ✭ 26 (+225%)
Mutual labels: markdown
Jbake
Java based open source static site/blog generator for developers & designers.
Stars: ✭ 904 (+11200%)
Mutual labels: markdown
Wp2md
Convert WordPress Posts to markdown files. / 将WordPress文章转换为md文件。
Stars: ✭ 8 (+0%)
Mutual labels: markdown
remark-reference-links
remark plugin to transform links and images into references and definitions.
Install
npm:
npm install remark-reference-links
Use
Say we have the following file, example.md
:
[foo](http://example.com "Example Domain"), [foo](http://example.com "Example Domain"), [bar](http://example.com "Example Domain").
![foo](http://example.com "Example Domain"), ![foo](http://example.com "Example Domain"), ![bar](http://example.com "Example Domain").
And our script, example.js
, looks as follows:
var fs = require('fs')
var remark = require('remark')
var links = require('remark-reference-links')
remark()
.use(links)
.process(fs.readFileSync('example.md'), function(err, file) {
if (err) throw err
console.log(String(file))
})
Now, running node example
yields:
[foo][1], [foo][1], [bar][1].
![foo][1], ![foo][1], ![bar][1].
[1]: http://example.com "Example Domain"
API
remark().use(referenceLinks)
Plugin to transform links and images into references and definitions.
Security
Use of remark-reference-links
does not involve rehype
(hast) or user content so there are no openings for
cross-site scripting (XSS) attacks.
Related
-
remark-bookmarks
— Link manager -
remark-inline-links
— Reverse ofremark-reference-links
, thus rewriting references and definitions into normal links and images -
remark-defsplit
— Practically the same asremark-inline-links
, but with URI-based identifiers instead of numerical ones -
remark-unlink
— Remove all links, references and definitions
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
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].