Skip to main content
Glama

mcp-victorialogs

newline.go826 B
// Copyright 2015 The Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package markdown func ruleNewline(s *StateInline, silent bool) bool { pos := s.Pos src := s.Src if src[pos] != '\n' { return false } pending := s.Pending.Bytes() pmax := len(pending) - 1 max := s.PosMax if !silent { if pmax >= 0 && pending[pmax] == ' ' { if pmax >= 1 && pending[pmax-1] == ' ' { pmax -= 2 for pmax >= 0 && pending[pmax] == ' ' { pmax-- } s.Pending.Truncate(pmax + 1) s.PushToken(&Hardbreak{}) } else { s.Pending.Truncate(pmax) s.PushToken(&Softbreak{}) } } else { s.PushToken(&Softbreak{}) } } pos++ for pos < max && byteIsSpace(src[pos]) { pos++ } s.Pos = pos return true }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/VictoriaMetrics-Community/mcp-victorialogs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server