public static String tickedPrettyPrintedNode(Node node) {
        String prettyPrinted = Node.prettyPrintJson(node);
        if (prettyPrinted.contains(System.lineSeparator()) || prettyPrinted.contains("\n")) {
            return String.format("%n```%n%s%n```%n", prettyPrinted);
        } else if (prettyPrinted.startsWith("\"") && prettyPrinted.endsWith("\"")) {
            // for pure strings, replace the quotes with backticks
            return "`" + prettyPrinted.substring(1, prettyPrinted.length() - 1) + "`";
        } else {
            return "`" + prettyPrinted + "`";
        }
    }
Writes the contents of a Node to a pretty-printed JSON string surrounded in backticks.

@param node Node to write.
@return Returns a string suitable for Markdown rendering.
smithy-model/src/main/java/software/amazon/smithy/model/validation/ValidationUtils.java