@Override public void p(final CharSequence fmt, final Object... args) { out(anchor(anchorId()).toString() + fmt + "\n", args); }
@Override public void p(final CharSequence fmt, final Object... args) { out(anchor(anchorId()).toString() + fmt + "\n", args); }
@Override public void h1(@javax.annotation.Nonnull final CharSequence fmt, final Object... args) { CharSequence anchorId = anchorId(); @javax.annotation.Nonnull CharSequence msg = format(fmt, args); toc.add(String.format("1. [%s](#%s)", msg, anchorId)); out("# " + anchor(anchorId) + msg); }
@Override public void h3(@javax.annotation.Nonnull final CharSequence fmt, final Object... args) { CharSequence anchorId = anchorId(); @javax.annotation.Nonnull CharSequence msg = format(fmt, args); toc.add(String.format(" 1. [%s](#%s)", msg, anchorId)); out("### " + anchor(anchorId) + fmt, args); }
@Override public void h2(@javax.annotation.Nonnull final CharSequence fmt, final Object... args) { CharSequence anchorId = anchorId(); @javax.annotation.Nonnull CharSequence msg = format(fmt, args); toc.add(String.format(" 1. [%s](#%s)", msg, anchorId)); out("## " + anchor(anchorId) + fmt, args); }
@javax.annotation.Nonnull @Override public String png(@Nullable final BufferedImage rawImage, final CharSequence caption) { if (null == rawImage) return ""; @Nonnull final File file = pngFile(rawImage, new File(getResourceDir(), getName() + "." + ++MarkdownNotebookOutput.imageNumber + ".png")); return anchor(anchorId()) + "![" + caption + "](etc/" + file.getName() + ")"; }
@Override public void h1(@javax.annotation.Nonnull final CharSequence fmt, final Object... args) { CharSequence anchorId = anchorId(); @javax.annotation.Nonnull CharSequence msg = format(fmt, args); toc.add(String.format("1. [%s](#%s)", msg, anchorId)); out("# " + anchor(anchorId) + msg); }
@Override public void h2(@javax.annotation.Nonnull final CharSequence fmt, final Object... args) { CharSequence anchorId = anchorId(); @javax.annotation.Nonnull CharSequence msg = format(fmt, args); toc.add(String.format(" 1. [%s](#%s)", msg, anchorId)); out("## " + anchor(anchorId) + fmt, args); }
@Override public void h3(@javax.annotation.Nonnull final CharSequence fmt, final Object... args) { CharSequence anchorId = anchorId(); @javax.annotation.Nonnull CharSequence msg = format(fmt, args); toc.add(String.format(" 1. [%s](#%s)", msg, anchorId)); out("### " + anchor(anchorId) + fmt, args); }
@javax.annotation.Nonnull @Override public String jpg(@Nullable final BufferedImage rawImage, final CharSequence caption) { if (null == rawImage) return ""; @Nonnull final File file = jpgFile(rawImage, new File(getResourceDir(), getName() + "." + ++MarkdownNotebookOutput.imageNumber + ".jpg")); return anchor(anchorId()) + "![" + caption + "](etc/" + file.getName() + ")"; }
@javax.annotation.Nonnull @Override public String png(@Nullable final BufferedImage rawImage, final CharSequence caption) { if (null == rawImage) return ""; @Nonnull final File file = pngFile(rawImage, new File(getResourceDir(), getName() + "." + ++MarkdownNotebookOutput.imageNumber + ".png")); return anchor(anchorId()) + "![" + caption + "](etc/" + file.getName() + ")"; }
@javax.annotation.Nonnull @Override public String jpg(@Nullable final BufferedImage rawImage, final CharSequence caption) { if (null == rawImage) return ""; @Nonnull final File file = jpgFile(rawImage, new File(getResourceDir(), getName() + "." + ++MarkdownNotebookOutput.imageNumber + ".jpg")); return anchor(anchorId()) + "![" + caption + "](etc/" + file.getName() + ")"; }
out(anchor(anchorId()) + "Code from [%s:%s](%s#L%s) executed in %.2f seconds (%.3f gc): ", callingFrame.getFileName(), callingFrame.getLineNumber(), CodeUtil.codeUrl(callingFrame), callingFrame.getLineNumber(), out(anchor(anchorId()) + "Logging: "); out("```"); out(" " + summary); out(anchor(anchorId()) + "Returns: \n"); String str; boolean escape;
out(anchor(anchorId()) + "Code from [%s:%s](%s#L%s) executed in %.2f seconds (%.3f gc): ", callingFrame.getFileName(), callingFrame.getLineNumber(), CodeUtil.codeUrl(callingFrame), callingFrame.getLineNumber(), out(anchor(anchorId()) + "Logging: "); out("```"); out(" " + summary); out(anchor(anchorId()) + "Returns: \n"); String str; boolean escape;