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
```scala mdoc
//> using dep io.scalaland::chimney::{{ git.tag or local.tag }}
import io.scalaland.chimney.Transformer
case class Foo (a : String)
```
!!! example
```scala mdoc
//> using dep io.scalaland::chimney::{{ git.tag or local.tag }}
import io.scalaland.chimney.Transformer
case class Foo (a : String)
```
While !!! example can be considered non-standard Markdown extension, the following is pretty standard but also doesn't work:
```scala mdoc
//> using dep io.scalaland::chimney::{{ git.tag or local.tag }}
import io.scalaland.chimney.Transformer
case class Foo (a : String)
```
* example inside a bullet point list:
```scala mdoc
//> using dep io.scalaland::chimney::{{ git.tag or local.tag }}
import io.scalaland.chimney.Transformer
case class Foo (a : String)
```
Problem
Output is:
--- a/Users/dev/Workspaces/GitHub/kanapeczka/test.md
+++ b/Users/dev/Workspaces/GitHub/kanapeczka/test.md
@@ -4,3 +4,3 @@
-case class Foo (a : String)
+case class Foo(a: String)
```
error: --test failed
It checks only non-indented code example, and skips the indented one.
Expectation
I would like the formatted output to look like this:
--- a/Users/dev/Workspaces/GitHub/kanapeczka/test.md
+++ b/Users/dev/Workspaces/GitHub/kanapeczka/test.md
@@ -4,3 +4,3 @@
-case class Foo (a : String)
+case class Foo(a: String)
```
--- a/Users/dev/Workspaces/GitHub/kanapeczka/test.md
+++ b/Users/dev/Workspaces/GitHub/kanapeczka/test.md
@@ -14,3 +14,3 @@
- case class Foo (a : String)
+. case class Foo(a: String)
```
error: --test failed
Workaround
I don't have one if I want to keep my current formatting (which would degrade the UX).
Note
I haven't checked, but probably the same situation would be with blockquites. This
example
> example
>
> ```scala mdoc
> type X = Foo Either Bar
> ```
would also be valid markdown.
The text was updated successfully, but these errors were encountered:
@MateuszKubuszok i apologize, i read your submission several times and i don't think i understand what is supported, what is not, why you are talking about unsupported markdown extensions or blockquotes, and what you expect. could you please provide several explicit pairs?
i must say that we might need help from the original author of this functionality, @swoogles.
I have markdown documentation with examples which I want to check for code formatting.
My examples are often indented, and it seems that this indentation makes them ignored.
Configuration
.scalafmt.conf
reproducing the issue:Command-line parameters
Steps
I attempted to check formatting for:
While
!!! example
can be considered non-standard Markdown extension, the following is pretty standard but also doesn't work:Problem
Output is:
It checks only non-indented code example, and skips the indented one.
Expectation
I would like the formatted output to look like this:
Workaround
I don't have one if I want to keep my current formatting (which would degrade the UX).
Note
I haven't checked, but probably the same situation would be with blockquites. This
would also be valid markdown.
The text was updated successfully, but these errors were encountered: