How to use remark-external-links - 2 common examples

To help you get started, we’ve selected a few remark-external-links examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github smooth-code / smooth-ui / doczrc.js View on Github external
'@smooth-ui': path.resolve(__dirname, 'packages'),
    '@docs': path.resolve(__dirname, 'docs'),
  })

  return config
}

export default {
  debug: true,
  title: 'Smooth UI',
  description: 'Modern UI library for React',
  repository: 'https://github.com/smooth-code/smooth-ui',
  indexHtml: 'docs/index.html',
  ordering: 'ascending',
  propsParser: false,
  mdPlugins: [externalLinks.default],
  modifyBundlerConfig,
  wrapper: 'docs/config/Wrapper.js',
  codeSandbox: false,
  menu: [
    'Home',
    'Getting Started',
    'Basics',
    'System',
    'Advanced',
    'Components',
    'Utilities',
    'Compatibility',
  ],
  themeConfig: {
    repository: 'https://github.com/smooth-code/smooth-ui',
    colors: {
github torch2424 / live-stream-radio / doczrc.js View on Github external
const Public = path.resolve(__dirname, 'public');
const Src = path.resolve(__dirname, 'src');

export default {
  src: './src',
  base: '/live-stream-radio/',
  title: 'live-stream-radio',
  description: '24/7 live stream video radio station CLI / API 📹 📻',
  ordering: 'ascending',
  propsParser: false,
  indexHtml: 'docz/index.html',
  htmlContext: {
    favicon: '/docz/favicon.ico'
  },
  hashRouter: true,
  mdPlugins: [externalLinks.default],
  plugins: [],
  modifyBundlerConfig: config => {
    config.resolve.alias = {
      ...config.resolve.alias,
      '@fonts': `${Public}/fonts`,
      '@images': `${Public}/images`,
      '@components': `${Src}/theme/components`,
      '@styles': `${Src}/theme/styles`
    };
    return config;
  }
};

remark-external-links

Legacy remark plugin to automatically add target and rel attributes to external links — please use `rehype-external-links`

MIT
Latest version published 3 years ago

Package Health Score

74 / 100
Full package analysis

Popular remark-external-links functions

Similar packages