Convertir fichiers et URLs en Markdown

VérifiéPrudence

Utilisez markit pour convertir PDF, fichiers Office, HTML et plus en Markdown propre. Gère les URL et GitHub via CLI ou SDK.

Spar Skills Guide Bot
ContenuDébutant
31004/09/2026
Claude CodeCursorWindsurfCopilotCodex
#markdown#document-conversion#pdf#cli#sdk

Recommandé pour

Notre avis

Convertit des fichiers (PDF, DOCX, PPTX, XLSX, EPUB, CSV, JSON, images, audio, ZIP) et des URLs, y compris GitHub, en Markdown via une CLI npx ou un SDK TypeScript.

Points forts

  • Couvre un très grand nombre de formats d'entrée avec une seule commande
  • Gère aussi les URLs web et les ressources GitHub (dépôts, fichiers, gists, issues, PRs)
  • Deux modes de sortie utiles : markdown brut avec -q ou objet { markdown, title } avec --json
  • Disponible en CLI et en SDK TypeScript pour une intégration dans un script

Limites

  • Nécessite Node.js et l'accès au registre npm pour exécuter npx @shiftlabs/markit
  • La sortie est du Markdown : la mise en page riche du document d'origine est aplatie
  • Aucune indication sur l'authentification des URLs privées ni sur un traitement hors ligne
Quand l'utiliser

À utiliser quand vous devez récupérer le contenu d'un document ou d'une page web sous forme de Markdown exploitable par un agent ou un pipeline.

Quand l'éviter

À éviter si vous avez besoin de conserver la mise en forme visuelle exacte du document ou si l'environnement n'a ni Node.js ni accès réseau.

Analyse de sécurité

Prudence
Score qualité85/100

The skill is a straightforward document/URL-to-Markdown converter with no destructive, obfuscated, or exfiltration instructions. However, it relies on executing an unpinned third-party npm package and fetching arbitrary remote content, so it carries legitimate but notable network and supply-chain risk.

Points d'attention
  • •Invokes a third-party npm package via npx without a pinned version, introducing supply-chain and remote-code execution risk.
  • •Converts arbitrary URLs and files, which may fetch untrusted network content or process sensitive local documents.
  • •No declared allowed-tools, so execution permissions are implicit.

Exemples

Convert a PDF report
Convert ~/Downloads/quarterly-report.pdf to markdown and save it as quarterly-report.md
Read a GitHub issue
Pull https://github.com/owner/repo/issues/42 as raw markdown so I can summarize it
Fetch a web page
Turn https://en.wikipedia.org/wiki/Markdown into markdown and return it as JSON with the title

name: markit description: Convert files and URLs to Markdown. Supports PDF, DOCX, PPTX, XLSX, HTML, EPUB, CSV, JSON, GitHub URLs, images, audio, ZIP, and more. Use when you need to extract content from any document format.

markit

Convert anything to Markdown.

CLI

# Convert a file
npx @shiftlabs/markit report.pdf -q

# Convert a URL
npx @shiftlabs/markit https://en.wikipedia.org/wiki/Markdown -q

# GitHub URLs (repos, files, gists, issues, PRs)
npx @shiftlabs/markit https://github.com/owner/repo -q
npx @shiftlabs/markit https://github.com/owner/repo/issues/42 -q
npx @shiftlabs/markit https://gist.github.com/user/id -q

# Write to file
npx @shiftlabs/markit document.docx -q -o output.md

# See all options
npx @shiftlabs/markit --help

# See supported formats
npx @shiftlabs/markit formats

-q gives raw markdown. --json gives { markdown, title }.

SDK

import { Markit } from "@shiftlabs/markit";

const markit = new Markit();
const { markdown } = await markit.convertFile("report.pdf");
const { markdown } = await markit.convertUrl("https://example.com");
const { markdown } = await markit.convert(buffer, { extension: ".docx" });
Skills similaires