Skip to content
Snippets Groups Projects
  • Damian Janus's avatar
    87cb97f0
    feat!: add different CSS classes for internal and external links · 87cb97f0
    Damian Janus authored and Bartłomiej Górnicki's avatar Bartłomiej Górnicki committed
    BREAKING CHANGE: API change
     * removed `addCssClassToLinks` option
     * added `cssClassForInternalLinks` option to specify a class that will be added to every internal link
     * added `cssClassForExternalLinks`option to specify a class that will be added to every external link
     * added `addExternalCssClassToMatchingLinksFn` function to determine whether the link is external or not. The result of the functions is used to select `cssClassForInternalLinks` or `cssClassForExternalLinks` to add to the link.
    87cb97f0
    History
    feat!: add different CSS classes for internal and external links
    Damian Janus authored and Bartłomiej Górnicki's avatar Bartłomiej Górnicki committed
    BREAKING CHANGE: API change
     * removed `addCssClassToLinks` option
     * added `cssClassForInternalLinks` option to specify a class that will be added to every internal link
     * added `cssClassForExternalLinks`option to specify a class that will be added to every external link
     * added `addExternalCssClassToMatchingLinksFn` function to determine whether the link is external or not. The result of the functions is used to select `cssClassForInternalLinks` or `cssClassForExternalLinks` to add to the link.