You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Experimental command to format code blocks embedded in docstrings (#7598)
* add experimental command to format code blocks embedded in docstrings
* normalize whitespace better
* fix offset lines calculation
* fix tests
* format Stdlib_Result.resi with the new docstrings formatter
* just output the filename without the full path for now
* fix
* disable color in docstring format tests since it breaks in different environments in CI
* better approach than a new env variable
* more tweaks to not make more changes to docstrings than needed
* do not edit anything if we didnt have any code blocks
* use cmarkit for transforming codeblocks
* add to opam file
* add to dune-project
* make markdown code block formatter work on markdown files as well
* restructure args
* refactor
* add transform for assertEqual -> == in code blocks
* change printer to make width optional
* explicit cmarkit
* add note about --transform-assert-equal
* support more rescript lang tags
* support resi code blocks as well
* add missing help text
* changelog
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,10 @@
12
12
13
13
# 12.0.0-beta.1 (Unreleased)
14
14
15
+
#### :rocket: New Feature
16
+
17
+
- Add experimental command to `rescript-tools` for formatting all ReScript code blocks in markdown. Either in a markdown file directly, or inside of docstrings in ReScript code. https://github.com/rescript-lang/rescript/pull/7598
0 commit comments