Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Add some more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Dom Harrington committed Jun 25, 2018
1 parent 1f65b03 commit 26f0fff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/api-explorer/src/lib/markdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const variableParser = require('./variable-parser');
const gemojiParser = require('./gemoji-parser');
const sanitizeSchema = require('hast-util-sanitize/lib/github.json');

// This is for our custom variable tags <<apiKey>>
sanitizeSchema.tagNames.push('readme-variable');
sanitizeSchema.attributes['readme-variable'] = ['variable'];

Expand All @@ -15,9 +16,12 @@ sanitizeSchema.attributes.i = ['className'];

// This is for `emoji` class name
sanitizeSchema.attributes.img = ['className'];

// This is for checklists in <li>
sanitizeSchema.tagNames.push('input');
sanitizeSchema.ancestors.input = ['li'];

// This is for our custom link formats
sanitizeSchema.protocols.href.push('doc', 'ref', 'blog', 'page');

const marked = require('marked');
Expand Down

0 comments on commit 26f0fff

Please sign in to comment.