Skip to content

Releases: ipikuka/remark-flexible-code-titles

v1.2.0

22 Mar 11:42
Compare
Choose a tag to compare

The changes made by @talatkuyuk

  • fixed with prettierPath: require.resolve("prettier-2"), since jest doesn't support prettier@3 in toMatchInlineSnapshot
  • updated the dependencies
  • updated the README.md (badges, links, plugin lists, options and example sections)
  • updated the tsconfig.json
  • added package-lock.json on behalf of npm ci in github actions
  • added npm provenance
  • added a github action for commits and pull requests
  • added type coverage 100%
  • added test coverage 100%
  • added codecov connection
  • added a test util, and updated all the tests
  • added a fixture test
  • made refinements in the code
  • made refinements in types
  • added a type namely Container by extending the @types/mdast
  • prevented the key className to be in the returned object in fallback function in the options titleProperties and containerProperties
  • added an option "tokenForSpaceInTitle" to support code titles which composed with more than one word (fixes #2)

tokenForSpaceInTitle

Normally, the remark-flexible-code-titles can match a code title which is the word that comes after a colon and ends in the first space it encounters. This option is provided to replace a space with a token in order to specify a code title consisting of more than one word.

use(remarkCodeTitles, {
  tokenForSpaceInTitle: "@",
});

Now, the titles that have more than one word can be set using the token @.

```bash:Useful@Bash@Commands
mkdir project-directory
```
<div class="remark-code-container">
  <div class="remark-code-title">Useful Bash Commands</div>
  <pre>
    <code class="language-bash">mkdir project-directory</code>
  <pre>
</div>

v1.1.4

19 Dec 17:49
Compare
Choose a tag to compare

Made some changes by @talatkuyuk

  • updated the dependencies
  • updated the README.md
  • refactored the tsconfig.json

v1.1.3

16 Jun 12:03
Compare
Choose a tag to compare

Made some changes by @talatkuyuk

  • added src directory into files in package.json for supporting source map
  • added the list of the remark packages I have published into README.md
  • added an option handleMissingLanguageAs for handling the missing language. Added a test file for it and updated the README.md as well. (fixes #1)

v1.1.2

26 Feb 20:37
Compare
Choose a tag to compare

Made some changes by @talatkuyuk

  • removed remark; added unified and remark-parse in test environment
  • updated README
  • corrected the config settings ensuring the package is for ESM only

v1.1.1

03 Feb 14:18
Compare
Choose a tag to compare
  • moved the @types/mdast from devDependencies to dependencies
  • converted the visitor function from arrow function to normal function for better debugging
  • refined the types
  • changed the typescript module from Node16 to NodeNext, in order to fix Cannot find module errors in test environment

v.1.1.0

01 Feb 23:43
Compare
Choose a tag to compare
  • updated some dependencies
  • fixed the type "Code" inference issue in visitor function
  • updated the tsconfig.json, removing moduleResolution since not needed if the module is NodeNext or Node16
  • added .npmrc for ignoring scripts
  • updated the package.json for the suggestion raised by @ChristianMurphy

v.1.0.9

27 Jan 19:52
Compare
Choose a tag to compare

fixed Type error: Could not find a declaration file for module 'remark-flexible-code-titles'.

v.1.0.8

27 Jan 14:08
Compare
Choose a tag to compare

Updated the dependencies

v1.0.7

27 Jan 12:03
Compare
Choose a tag to compare

initial tagged release !

  • updated README.md
  • changed the location of the index.d.ts from /esm or /cjs into /types