Skip to content
Back to skills

Markdown Text

ASecurity

Produce .md and .txt output, and parse Markdown without the markdown package. Use for plain-text targets.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 12, 2026
devopspython

Security analysis

A100/100

Scanned October 12, 2026

npx -y skills add RorroRojas3/enterprise-gpt --skill markdown-text --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Markdown Text?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Markdown Text
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rorrorojas3-markdown-text/badge)](https://www.skillsdirectory.com/skills/rorrorojas3-markdown-text)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: markdown-text
description: Produce .md and .txt output, and parse Markdown without the markdown package. Use for plain-text targets.
---

# Markdown and plain text

**The `markdown` package is NOT installed in this image, and nothing can be installed.** Any recipe importing it fails. `beautifulsoup4` 4.14.3 and `lxml` 6.1.1 are present for the HTML direction.

## Write

```python
from pathlib import Path

Path("/mnt/data/summary.md").write_text(text, encoding="utf-8")
```

Always write UTF-8 explicitly; the default encoding is not guaranteed to be what a reader expects.

## Composing Markdown

Build it as text. A table is just rows:

```python
def table(headers, rows):
    lines = ["| " + " | ".join(headers) + " |",
             "| " + " | ".join("---" for _ in headers) + " |"]
    lines += ["| " + " | ".join(str(cell) for cell in row) + " |" for row in rows]
    return chr(10).join(lines)
```

`pandas.DataFrame.to_markdown()` also works — `tabulate` is installed.

## Markdown into another format

There is no Markdown parser here. Walk the source line by line and map it: `#` prefixes to heading levels, `-`/`*` prefixes to list items, `|` rows to table rows, everything else to a paragraph. That is what the conversion recipes do, and it is why a Markdown conversion is honest about losing inline formatting.

## Notes

- `.txt` output is the same write with the formatting stripped: no `#`, no `|`, no `*`.
- Preserve blank lines between blocks. Markdown that renders as one paragraph is the usual symptom of dropping them.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.