output

Output bit, used to display output from code snippets

Editor en vivo

[.output]
[@id:51861]
[@computerLanguage:javascript]
[%][%Ausgleichsmassnahmen für Frauen der Übergangsgeneration]

int mess_up(int **doublePointer) {
  return "take that!!"
}

void veryNastyCode() {
  int xor = 1 ^ 0x1234; // This is fine, not breakscaped away
  int or  = 1 // Inline comment followed by no indentation
| 0x1234; // This is going to break things
}


/**
  * Convert Bitmark text to text AST.
  *
  * The Bitmark text should be a string.
  * If parsed bitmark text AST is passed to this function, it will be returned as is.
  *
  * @param text - bitmark text
  * @returns bitmark text AST as plain JS object
  */
toAst(text: string | TextAst | undefined, options?: BitmarkTextParserOptions): TextAst {
  // If input is not a string, return it as is
  if (Array.isArray(text)) return text;
  const str = text as string;

  const testXor = 2 ^ 0x12345678;

  // Ensure options is an object
  const opts = Object.assign({}, options);

  // Default text format to bitmark-- if not specified
  if (!opts.textFormat) opts.textFormat = TextFormat.bitmarkMinusMinus;

  const startRule = opts.textFormat === TextFormat.bitmarkPlusPlus ? 'bitmarkPlusPlus' : 'bitmarkMinusMinus';

  return bitmarkTextParse(str ?? '', {
    startRule,
  });
}

Propiedades

Formato del cuerpo
text
Cuerpo
Opcional
Tiene pie
Sí
Adjunto de recursos
all

bit-identity 11

Nombre Descripción Formato Mín / Máx Valor predeterminado
@id The unique identifier(s) for the bit string 0 - ∞ ""
@gUri Global URI for the bit string 0 - 1 ""
@customerId The customer-specific identifier for the bit string 0 - 1 ""
@externalId The external identifier for the bit string 0 - ∞ ""
▼ Anchor of the bit string 0 - 1 ""
customer▼ Anchor of the bit, as the customer's source names it string 0 - 1 ""
@sourceRL The original location of the information in the original source material string 0 - 1 ""
@sourceBB The source bounding box(es) for the bit (x, y, x1, y1) numberList4 0 - ∞ omit
@bitFingerprint Fingerprint(s) used by the AI extractor to identify the bit (font, style, color, pixels, etc.) string 0 - ∞ ""
@extractorTag The extractor tag(s) for the bit string 0 - ∞ ""
@extractorInternal Internal metadata used by the extractor for processing purposes string 0 - ∞ ""

bit-rights 5

Nombre Descripción Formato Mín / Máx Valor predeterminado
@copyright Copyright of the bit string 0 - 1 ""
@license Licence of the bit string 0 - 1 ""
@rightsPolicy The rights policy or policies for the bit string 0 - ∞ ""
@publisher The publisher(s) of the bit string 0 - ∞ ""
@publisherName The name of the publisher of the bit string 0 - 1 ""

bit-editorial 14

Nombre Descripción Formato Mín / Máx Valor predeterminado
@isTemplate If true, the bit is a template boolean 0 - 1 false
@isTemplateStripTheme If true, the template's theme is stripped boolean 0 - 1 false
@needsValidation If true, the bit needs validation boolean 0 - 1 false
@validationDate The date when the bit was validated string 0 - 1 ""
@aiGenerated If true, the bit is AI-generated boolean 0 - 1 omit
@aiDisclosureRequired If true, readers must be shown that the bit's content is AI-generated boolean 0 - 1 false
@aiModel The AI model used to create the bit's content, e.g. gpt-5, claude-sonnet-4 string 0 - 1 ""
@aiOperation What the AI did to the bit's content, e.g. generate, translate, rewrite, summarize, transform string 0 - 1 ""
@aiReviewed If true, a person has reviewed the bit's AI-generated content as an editor boolean 0 - 1 false
@machineTranslated If true, the bit is machine-translated string 0 - 1 ""
@translationOf Translation source reference string 0 - 1 ""
@reviewTag The review tag(s) for the bit string 0 - ∞ ""
@reviewerTag The reviewer tag(s) for the bit string 0 - ∞ ""
@internalComment Internal comment for the bit string 0 - ∞ ""

bit-display 14

Nombre Descripción Formato Mín / Máx Valor predeterminado
@isCollapsible If true, the bit is collapsible boolean 0 - 1 omit
@collapsed If true, the bit is collapsed boolean 0 - 1 false
@isSelectable If true, the bit is selectable boolean 0 - 1 false
@selected If true, the bit is selected boolean 0 - 1 false
@pageBreak If true, the bit starts on a new page boolean 0 - 1 false
@spansPageBreak If true, the bit spans a page break boolean 0 - 1 omit
@showInIndex If true, the bit is shown in the index boolean 0 - 1 false
@theme The theme(s) for the bit string 0 - ∞ omit
@rtl If true, the book is right-to-left boolean 0 - 1 false
@icon The icon for the bit string 0 - 1 ""
@iconTag The icon tag for the bit string 0 - 1 ""
@colorTag The color tag(s) for the bit string 0 - ∞ ""
@layer The layer(s) for the bit string 0 - ∞ ""
@layerRole The layer role(s) for the bit string 0 - ∞ ""

bit-tagging 11

Nombre Descripción Formato Mín / Máx Valor predeterminado
@searchIndex The search index(es) for the bit string 0 - ∞ ""
@search Search text of the bit string 0 - 1 ""
@tag The tag(s) for the bit string 0 - ∞ omit
@groupTag The group tag(s) for the bit string 0 - ∞ ""
@tag The tag(s) for the group string 0 - ∞ omit
@analyticsTag The analytics tag(s) for the bit string 0 - ∞ ""
@categoryTag The category tag(s) for the bit string 0 - ∞ ""
@topicTag The topic tag(s) for the bit string 0 - ∞ ""
@reportTag The report tag(s) for the bit string 0 - ∞ ""
@reductionTag The reduction tag(s) for the bit string 0 - ∞ ""
@bubbleTag The bubble tag(s) for the bit string 0 - ∞ ""
@target The target(s) for the bit string 0 - ∞ ""

bit-audience 7

Nombre Descripción Formato Mín / Máx Valor predeterminado
@lang The language for the bit string 0 - 1 ""
@altLangTag The alternative language tag for the bit string 0 - 1 ""
@ageRange The age range for the bit string 0 - ∞ ""
@levelCEFRp The CEFRp level for the bit string 0 - 1 ""
@levelCEFR The CEFR level for the bit string 0 - 1 ""
@levelILR The ILR level for the bit string 0 - 1 ""
@levelACTFL The ACTFL level for the bit string 0 - 1 ""

bit-accessibility 2

Nombre Descripción Formato Mín / Máx Valor predeterminado
@accessibilityTag The accessibility classification(s) for the bit enum 0 - ∞ omit
@accessibilityGroupTag Accessibility group tag(s) of the bit string 0 - ∞ ""
@accessibilityTag Accessibility classification(s) of the group enum 0 - ∞ omit

bit-feedback 3

Nombre Descripción Formato Mín / Máx Valor predeterminado
@feedbackEngine The feedback engine for the bit string 0 - 1 ""
@feedbackType The feedback type for the bit string 0 - 1 ""
@disableFeedback If true, feedback is disabled for the bit boolean 0 - 1 false

bit-diff 5

Nombre Descripción Formato Mín / Máx Valor predeterminado
@diffTo The diff to version for the bit string 0 - 1 ""
@diffOp The diff operation for the bit string 0 - 1 ""
@diffRef The diff reference for the bit string 0 - 1 ""
@diffContext The diff context for the bit string 0 - 1 ""
@diffTime The diff time for the bit number 0 - 1 omit

standard-item-lead 1

Nombre Descripción Formato Mín / Máx Valor predeterminado
% The item bitmark++ 0 - 1 ""
% The lead bitmark++ 0 - 1 ""
% The page number bitmark++ 0 - 1 ""
% The margin number bitmark++ 0 - 1 ""

standard-item-lead-instruction-hint 2

Nombre Descripción Formato Mín / Máx Valor predeterminado
! The instruction bitmark++ 0 - 1 ""
? The hint bitmark++ 0 - 1 ""

standard-tags 1

Nombre Descripción Formato Mín / Máx Valor predeterminado
@example The example(s) for the bit bitmark++ 0 - 1 omit

code 3

Nombre Descripción Formato Mín / Máx Valor predeterminado
@computerLanguage Programming language of the code string 0 - 1 ""
@codeLineNumbers If true, line numbers are shown boolean 0 - 1 false
@codeMinimap If true, a minimap is shown boolean 0 - 1 false