插件过滤器稳定版

Git flavored markdown quotes filter

filter_gitquotesNichita Nartea

  • Moodle 3.9–4.4
  • 更新 2024-09-12

This plugin extends the default Markdown filter in Moodle by adding support for git-style quotes, such as `[!NOTE]`, `[!TIP]`, `[!IMPORTANT]`, and `[!WARNING]`. It also applies custom styles to standard blockquotes, providing better visual distinction between different types of quotes.
Custom Git-Style Quotes Filter for Moodle
This plugin extends the default Markdown filter in Moodle by adding support for git-style quotes, such as [!NOTE] , [!TIP] , [!IMPORTANT] , and [!WARNING] . It also applies custom styles to standard blockquotes, providing better visual distinction between different types of quotes.
Features
Git-style quotes: Adds custom styles and icons to [!NOTE] , [!TIP] , [!IMPORTANT] , and [!WARNING] quotes in Markdown.
Standard blockquote styling: Automatically applies a custom style to standard blockquotes without special tags.
Customizable design: You can easily modify the CSS to adjust the appearance of the quotes to fit your site’s theme.
Installation
Clone or download this repository to your Moodle /filter directory.
The folder should be named gitquotes .
Navigate to Site Administration > Plugins > Install plugins in your Moodle dashboard.
Activate the Filter:
Go to Site Administration > Plugins > Filters > Manage filters .
Enable the “Git-style Quotes” filter.
Make sure this filter is placed above the default Markdown filter to ensure proper functionality.
Clear Moodle Cache:
After installation, go to Site Administration > Development > Purge caches and click Purge all caches to refresh your Moodle filters.
Usage
Once the plugin is installed and activated, you can use the following syntax in your Markdown content:
Note Example:

返回插件目录