Git Product home page Git Product logo

glipdown's Introduction

glipdown

Glip-flavored markdown with URI auto-linking

Install

npm install glipdown

Usage

var Markdown = require('../markdown').Markdown

Markdown(string[, param]);

Syntax


Original Text:

https://jira.ringcentral.com

Marked Text:

<a href='https://jira.ringcentral.com' target='_blank' rel='noreferrer'>https://jira.ringcentral.com</a>

Original Text:

| **When** | 11:30am on Monday |
| **Account** | [email protected] |
| **From** | Dave Varenos |
| **To** | Dan Foody |

Marked Text:

<table>
    <tr valign='top'>
        <td width='50%'> <b>When</b> </td>
        <td width='50%'> 11:30am on Monday
    </tr>
    <tr valign='top'>
        <td width='50%'> <b>Account</b> </td>
        <td width='50%'> <a href='mailto:[email protected]' target='_blank' rel='noreferrer'>[email protected]</a> 
    </tr>
    <tr valign='top'>
        <td width='50%'> <b>From</b> </td>
        <td width='50%'> Dave Varenos 
    </tr>
    <tr valign='top'>
        <td width='50%'> <b>To</b> </td>
        <td width='50%'> Dan Foody 
    </tr>
</table>

Original Text:

email me at mailto:[email protected] or [mail my friend](mailto:[email protected])

Marked Text:

email me at <a href='mailto:[email protected]' target='_blank' rel='noreferrer'>[email protected]</a> or <a href='mailto:[email protected]' target='_blank' rel='noreferrer'>mail my friend</a>

Original Text:

[code]
|test|test|
[/code]
|test|test|

Marked Text:

<pre class=codesnippet>
    |test|test|
</pre>
<table>
    <tr valign='top'>
        <td width='50%'>test</td>
        <td width='50%'>test
    </tr>
</table>

Original Text:

* awesome

Marked Text:

<ul><li>awesome</li></ul>

Original Text:

**awesome**

Marked Text:

<b>awesome</b>

Original Text:

*awesome*

Marked Text:

<i>awesome</i>

Original Text:

__awesome__ google.com

Marked Text:

<u>awesome</u> <a href='http://google.com' target='_blank' rel='noreferrer'>google.com</a>

Original Text:

~~awesome google.com~~

Marked Text:

<strike>awesome <a href='http://google.com' target='_blank' rel='noreferrer'>google.com</a></strike>

Original Text:

[code][some link](http://heynow.com)[/code][legit](http://legit.com)

Marked Text:

<pre class=codesnippet>&lt;a href='http://heynow.com' target='_blank' rel='noreferrer'&gt;some link&lt;/a&gt;</pre><a href='http://legit.com' target='_blank' rel='noreferrer'>legit</a>

Original Text:

[[email protected]](mailto:[email protected])

Marked Text:

<a href='mailto:[email protected]' target='_blank' rel='noreferrer'>[email protected]</a>

Original Text:

[Ooijasdf.com](Ooijasdf.com)

Marked Text:

<a href='Ooijasdf.com' target='_blank' rel='noreferrer'>Ooijasdf.com</a>

Original Text:

this is a [email protected] for you

Marked Text:

this is a <a href='mailto:[email protected]' target='_blank' rel='noreferrer'>[email protected]</a> for you

Original Text:

**File**
[calendar-jeff.ics](https://trello-attachments.s3.amazonaws.com/5463e14ac46008b0ec6feccf/553e4f4aa147ee4561e8c580/b66fa91c8224cfb458831a9618118c2f/calendar-jeff.ics)

Marked Text:

<b>File</b>
<a href='https://trello-attachments.s3.amazonaws.com/5463e14ac46008b0ec6feccf/553e4f4aa147ee4561e8c580/b66fa91c8224cfb458831a9618118c2f/calendar-jeff.ics' target='_blank' rel='noreferrer'>calendar-jeff.ics</a>

Original Text:

<a href="http://google.com" class="heynow"><img src="http://heynow.com">Words</a> https://google.com

Marked Text:

&lt;a href=&quot;<a href='http://google.com' target='_blank' rel='noreferrer'>http://google.com</a>&quot; class=&quot;heynow&quot;&gt;&lt;img src=&quot;<a href='http://heynow.com' target='_blank' rel='noreferrer'>http://heynow.com</a>&quot;&gt;Words&lt;/a&gt; <a href='https://google.com' target='_blank' rel='noreferrer'>https://google.com</a>

Original Text:

{{-{{a href="http://google.com" class="heynow"}}-}}{{-{{img src="http://heynow.com"}}-}} http://legit.com

Marked Text:

{{-{{a href=&quot;http://google.com&quot; class=&quot;heynow&quot;}}-}}{{-{{img src=&quot;http://heynow.com&quot;}}-}} http://legit.com

glipdown's People

Contributors

jeremy-loffredo avatar jstrinko avatar kilgoretroute07 avatar kingle-zhuang avatar mysterious64 avatar steeftee avatar tlomadze-ab-soft avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.