0.0.13 • Published 1 year ago

@fujocoded/remark-capitalize-titles v0.0.13

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@fujocoded/remark-capitalize-titles

A version of this Vercel plugin that transforms all markdown titles with title.shand also accepts options.

It also allows capitalizing the title prop of a given list of Astro components.

By default it uses FujoCoded's own list of capitalization exceptions.

Sample usage

In astro.config.js:

import remarkCapitalizeTitles from "@fujocoded/remark-capitalize-titles";

export default defineConfig({
  // ...
  integrations: [
    mdx({
      remarkPlugins: [
        [
          remarkCapitalizeTitles,
          {
            // Any component whose title prop should be capitalized
            componentNames: ["Callout", "ScenarioCallout"],
          },
        ],
      ],
    }),
  ],
});

TODOs:

  • Fix issue where a title in a heading that has a previous sibling will be capitalized as if the first word was the beginning of the sentence
  • Something like "heading" in titles where the word is compounded with a code thing will capitalize "ing".
0.0.12

1 year ago

0.0.13

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago