azu / azu/mdline

mdline: support --formatter

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
168
Forks
30
PR merge metrics
No merged PRs in 30d

Description

mdline should support pluggable formatter.

It is similar with [textlint](https://textlint.github.io/).

## Tasks

- [ ] mdline cli support `-f` and `--formatter`
- `mdline -f json -o timelint.json timelint.md`
- Resolve `json` with `@mdline/mdline-formatter-json` or `mdline-formatter-json`
- Similar approach: https://github.com/textlint/textlint/blob/master/packages/textlint/src/engine/textlint-module-resolver.ts

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the mdline CLI and compare its formatter-resolution approach with textlint's linked textlint-module-resolver.ts. Add support for -f/--formatter using the documented scoped and unscoped package names, then verify that the JSON example produces timelint.json.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.