markdown-it-ado-links

1.1.0 • Public • Published

markdown-ado-links

Plugin to generate links to Azure Dev Ops for titles pasted from ADO.

Usage

import adoLinks from './index.js';
import markdownIt from 'markdown-it';

const md = markdownIt().use(
   adoLinks,
   {
      organization: "my-org",
      project: "my-project",
      workItemTypes: ['Bug', 'Product Backlog Item']
   }
);

md.render('Bug 123: a bug title');

Configuration Options

  • organization: (required) the organization name for ADO
  • project: (required) the project name for ADO
  • workItemTypes: (required) display name of work item names, used to find reference titles in markdown

HTML

The output of the above example is:

<p>Bug <a
   href="https://dev.azure.com/my-org/my-project/_workitems/edit/42"
   title="a bug title">42</a>: a bug title</p>

/markdown-it-ado-links/

    Package Sidebar

    Install

    npm i markdown-it-ado-links

    Weekly Downloads

    1

    Version

    1.1.0

    License

    ISC

    Unpacked Size

    3.72 kB

    Total Files

    4

    Last publish

    Collaborators

    • trevorpower