1.1.0 • Published 6 months ago

markdown-it-ado-links v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

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>
1.1.0

6 months ago

1.0.0

6 months ago