Releases: ipikuka/remark-flexible-code-titles
Releases · ipikuka/remark-flexible-code-titles
v1.2.0
The changes made by @talatkuyuk
- fixed with
prettierPath: require.resolve("prettier-2")
, sincejest
doesn't support prettier@3 intoMatchInlineSnapshot
- 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 ofnpm 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 optionstitleProperties
andcontainerProperties
- 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
Made some changes by @talatkuyuk
- updated the dependencies
- updated the README.md
- refactored the tsconfig.json
v1.1.3
Made some changes by @talatkuyuk
- added
src
directory into files inpackage.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 theREADME.md
as well. (fixes #1)
v1.1.2
Made some changes by @talatkuyuk
- removed
remark
; addedunified
andremark-parse
in test environment - updated README
- corrected the config settings ensuring the package is for ESM only
v1.1.1
- moved the
@types/mdast
fromdevDependencies
todependencies
- converted the
visitor
function from arrow function to normal function for better debugging - refined the types
- changed the typescript
module
fromNode16
toNodeNext
, in order to fixCannot find module
errors in test environment
v.1.1.0
- updated some dependencies
- fixed the type "Code" inference issue in visitor function
- updated the
tsconfig.json
, removingmoduleResolution
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
fixed Type error: Could not find a declaration file for module 'remark-flexible-code-titles'.
v.1.0.8
Updated the dependencies
v1.0.7
initial tagged release !
- updated README.md
- changed the location of the
index.d.ts
from/esm
or/cjs
into/types