Skip to content

[Replacement]: to-gfm-code-block #556

@gameroman

Description

@gameroman

Package to replace

to-gfm-code-block

Suggested replacement(s)

const toGfmCodeBlock = (str: string, lang?: string) => `${'```'}${lang ?? ''}\n${str}\n${'```'}`

or

const toGfmCodeBlock = (str: string, lang?: string) => `\`\`\`${lang ?? ''}\n${str}\n\`\`\``

Manifest type

micro-utility (tiny utility replaceable with native code or removal)

Rationale

Can be replaced by a simple util

Availability

No response

Code example (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedUsed to signal if a suggested replacement has been accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions