package p.studio.lsp.messages;

import java.util.Objects;

public record BaselineHover(
        String markdown) {

    public BaselineHover {
        final String candidate = Objects.requireNonNull(markdown, "markdown").trim();
        if (candidate.isEmpty()) {
            throw new IllegalArgumentException("markdown must not be blank");
        }
        markdown = candidate;
    }
}
