0.0.13 • Published 9 months ago

@fujocoded/remark-capitalize-titles v0.0.13

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months 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

9 months ago

0.0.13

9 months ago

0.0.10

10 months ago

0.0.11

10 months ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago