markdown

package
v1.41.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package markdown writes the placeholders Probe puts in place of hidden values so that Markdown shows them, for an action that posts text with them, such as the notes of a run, where <secret:NAME> and <redacted> would be taken for something else: an HTML tag on GitHub, which leaves it out, or a link or a mention on Slack.

It is a package of its own, apart from the sdk package, so that only an action that writes Markdown carries the Markdown parser it reads the text with.

Index

Constants

View Source
const (
	// AsEntity writes a placeholder with HTML entities, as
	// &lt;secret:NAME&gt;, for Markdown that takes HTML, such as that of
	// GitHub.
	AsEntity = markdown.AsEntity
	// AsCode puts a placeholder in a code span, for Markdown that reads
	// <...> as something else, such as that of Slack.
	AsCode = markdown.AsCode
)

Variables

This section is empty.

Functions

func Escape

func Escape(s string, style Style) string

Escape returns s, Markdown with placeholders in it, with each placeholder written in style, so that Markdown shows it as it is and reads the rest of s as before.

Types

type Style

type Style = markdown.Style

Style is how Escape writes a placeholder.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL