Markdown It Link To Card screenshot

Markdown It Link To Card

Author Avatar Theme by Luckrya
Updated: 9 Dec 2022
25 Stars

A markdown-it plugin that converts links to cards. Preview simple URL information more intuitively

Categories

Overview

The @luckrya/markdown-it-link-to-card is a markdown-it plugin that allows you to turn page links into link cards with brief information about the link. It provides features such as extracting links with special flags, custom renderers, injecting class names for cards, and more.

Features

  • Link Card Extraction: Extract links with special flags and convert them into link cards with brief information.
  • Custom Renderers: Support for custom renderers to render the link cards in any way you want.
  • Class Injection: Option to inject class names for the link cards to support custom styles.

Installation

To install the @luckrya/markdown-it-link-to-card plugin, follow these steps:

  1. Open your terminal or command prompt.

  2. Navigate to your project directory.

  3. Run the following command to install the plugin via npm:

    npm install @luckrya/markdown-it-link-to-card
    
  4. Once the installation is complete, you can import and use the plugin in your project.

Summary

The @luckrya/markdown-it-link-to-card plugin is a useful tool for transforming page links into link cards with brief information. It offers features such as link extraction, custom rendering, and class injection. By using this plugin, you can enhance the visual display of your markdown content.