#!/bin/bash # Download Milkdown Crepe from jsDelivr CDN and extract to lib/ set -e LIB_DIR="lib/milkdown-crepe" CREPE_VERSION="7.7.0" CREPE_URL="https://cdn.jsdelivr.net/npm/@milkdown/crepe@${CREPE_VERSION}/dist" echo "📦 Downloading Milkdown Crepe v${CREPE_VERSION}..." mkdir -p "$LIB_DIR" # Download key files echo " → index.js" curl -fsSL "${CREPE_URL}/index.js" -o "${LIB_DIR}/index.js" echo " → index.d.ts" curl -fsSL "${CREPE_URL}/index.d.ts" -o "${LIB_DIR}/index.d.ts" echo " → style.css" curl -fsSL "${CREPE_URL}/style.css" -o "${LIB_DIR}/style.css" echo "✓ Milkdown Crepe installed to ${LIB_DIR}"