All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.aya.literate.UnsupportedMarkdown Maven / Gradle / Ivy

There is a newer version: 0.35.0
Show newest version
// Copyright (c) 2020-2023 Tesla (Yinsen) Zhang.
// Use of this source code is governed by the MIT license that can be found in the LICENSE.md file.
package org.aya.literate;

import org.aya.pretty.doc.Doc;
import org.aya.util.error.SourcePos;
import org.aya.util.prettier.PrettierOptions;
import org.aya.util.reporter.Problem;
import org.jetbrains.annotations.NotNull;

public record UnsupportedMarkdown(
  @Override @NotNull SourcePos sourcePos,
  @NotNull String nodeName
) implements Problem {
  @Override public @NotNull Severity level() {
    return Severity.WARN;
  }

  @Override public @NotNull Doc describe(@NotNull PrettierOptions options) {
    return Doc.english("Unsupported markdown syntax: " + nodeName + ".");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy