Skip to content

Commit

Permalink
doc: Fix jekyll rendering of spoon_javadoc.md (#5611)
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Al-Istannen committed Jan 11, 2024
1 parent 1e5746a commit 5824071
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions doc/spoon_javadoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ In the following example, javadoc is parsed and then printed out again -- but
this time with some ANSI color highlighting applied. Note that references are
pretty-printed according to `CtReference#toString()`.

<details>

<summary>Expand me for the code </summary>

```java
void example() {
String javadoc = "/**\n" +
Expand Down Expand Up @@ -75,7 +71,7 @@ void example() {
// Javadoc comments can use "#foo" to refer to fields/methods
// in the current class.
new Launcher().getFactory().Type().OBJECT.getTypeDeclaration()
).parse();
).parse();

for (JavadocElement element : elements) {
System.out.print(element.accept(new ExampleVisitor()));
Expand Down Expand Up @@ -140,7 +136,6 @@ private static class ExampleVisitor implements JavadocVisitor<String> {
}
```

</details>
<br>
This will print a version with a bit more colours:
![ANSI colored javadoc]({{ "/images/spoon_javadoc_ansi_print.png" | prepend: site.baseurl }})
Expand Down

0 comments on commit 5824071

Please sign in to comment.