Skip to content

Add a remark.rcPath setting so that a different file can be used for configuration #145

Description

@akrawitz

Initial checklist

Problem

It is not uncommon to use remark for multiple purposes in a project. For example, it may be used for linting files such as README.md and also used for converting content files into HTML. As a result, I may have multiple remark configuration files - one for each use case.

I would like to name the configuration file for linting to be something like remarklint.config.js, but I can't if I want vscode-remark to pick it up.

Current solutions

Currently, the only approach is to reserve .remarkrc.js for the linting use case, and use different file names for the other configuration files.

Proposed solutions

With remark-cli I can specify which configuration file to use via the --rc-path option:
https://github.com/remarkjs/remark/tree/main/packages/remark-cli#cli

It would be nice if the user could likewise choose which configuration file to use in vscode-remark via a remark.rcPath setting.

The default configuration file can be left as .remarkrc.js, but now users would be able to change that if they wanted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions