embed-plugin-url

5.0.4 • Public • Published

embed-plugin-url

A plugin that can be used to parse urls into anchor tags.

Installation

npm i -S embed-js embed-plugin-url

CDN

https://unpkg.com/embed-plugin-url

Usage

Edit embed.js - url

Parsing urls into anchor tags.

import EmbedJS from 'embed-js'
import url from 'embed-plugin-url'
 
const x = new EmbedJS({
  input: document.getElementById('element'),
  plugins: [
    url({
        attributes: {}, // a hash of attributes to be added in the url
        escape: false   // whether on not to escape special characters in url
    })
  ]
})

Note : Avoid using escape: true when using with highlight plugin.

License

MIT @ Ritesh Kumar

Readme

Keywords

none

Package Sidebar

Install

npm i embed-plugin-url

Weekly Downloads

217

Version

5.0.4

License

MIT

Unpacked Size

26.7 kB

Total Files

9

Last publish

Collaborators

  • ritz078