Skip to content

A marked extension to automatically open links in new tabs (using `target="_blank").

License

Notifications You must be signed in to change notification settings

gbourel/marked-newtab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marked-newtab

npm

🔗 A marked extension thats adds target="_blank" attribute to links for new tab opening.

Installation

npm install marked-newtab

Usage

import { newtab } from "marked-newtab";

marked.use(newtab);

TODO

  • Add option to choose between _blank and blank
  • Add noreferrer option
  • Add inline markdown parser to allow "classic" links.

About

A marked extension to automatically open links in new tabs (using `target="_blank").

Resources

License

Stars

Watchers

Forks

Packages

No packages published