-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow grouping highlights by color in markdown output (#79)
This commit adds new options to the CLI, allowing the user to control how highlights are grouped in the markdown output. The new option is called `--group-highlight-by-color` to group highlights by their color in the grouped output. Additionally, the commit updates the `MarkdownPrinter` class in the `printer/markdown.py` module to include the `group_highlights_by_color` parameter. The `GroupedMarkdownPrinter` class also handles the grouping of highlights based on this new parameter. Note: This commit does not introduce any behavior changes by default, as the `--group` option is set to `True` and the `--no-group` option is set to `False` by default. The `--group-highlight-by-color` option is also set to `False` by default.
- Loading branch information
Showing
5 changed files
with
89 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.