@forastro/remark-html-directives
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

For Astro Remark HTML Directives

This package is a package that is designed to configure Remark Directive in a way that conforms to the HTML standard. It will not allow users to use form or form related tags. They are also not allowed to use the body tag or any tag that is used in the head tag. Since you are using Astro it's simply better to use An Astro component layout for your custom needs.

I have decided to explain the contents of this plugin in the form of documentation

Docs on This Library

Remember you must always call this function to use it

Usage

npm i -D remark-directive @forastro/remark-html-directives 

Default

import remarkHTMLDirectives from "@forastro/remark-html-directives"
 export default defineConfig({
    remarkPlugins:[
        "remark-directive",
        remarkHTMLDirectives()
    ]
 })

Article Mode

import remarkHTMLDirectives from "@forastro/remark-html-directives"
 export default defineConfig({
    remarkPlugins:[
        "remark-directive",
        remarkHTMLDirectives({mode:'article'})
    ]
 })

Page Mode

import remarkHTMLDirectives from "@forastro/remark-html-directives"
 export default defineConfig({
    remarkPlugins:[
        "remark-directive",
        remarkHTMLDirectives({mode:'page'})
    ]
 })

Recommendations

Package Sidebar

Install

npm i @forastro/remark-html-directives

Weekly Downloads

0

Version

1.0.1

License

none

Unpacked Size

12.2 kB

Total Files

5

Last publish

Collaborators

  • codebreaker10