README.md: fix links to rules
Having the level in the heading meant that the anchor link was modified, breaking the links.
This commit is contained in:
parent
c46668d1f1
commit
affe65263a
2 changed files with 195 additions and 197 deletions
|
@ -7,7 +7,6 @@ import org.springframework.stereotype.Component;
|
|||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.Optional;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
/**
|
||||
|
@ -39,7 +38,6 @@ class DefaultRuleReadmeLoader implements RuleReadmeLoader {
|
|||
}
|
||||
|
||||
private String formatRuleHeader(final Rule rule) {
|
||||
return String.format("%n#### [%s](%s) (%s)", rule.getName(), rule.getUri(), Optional.ofNullable(rule.getLevel())
|
||||
.orElse(RuleLevel.UNSPECIFIED));
|
||||
return String.format("%n#### [%s](%s)", rule.getName(), rule.getUri());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue