comment

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package comment is a placeholder for Obsite Markdown comment handling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Strip

func Strip(src []byte) []byte

Strip removes Obsidian %% ... %% comments before Markdown parsing.

The implementation keeps a small line-based state machine instead of trying to fully parse Markdown. It preserves indented code blocks and fenced code blocks, including those nested inside blockquote or list containers. Comment contents outside those code block forms are discarded, while newlines inside stripped comments are preserved so later parsing keeps stable line structure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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