Initial commit of ribbit library

Zero-dependency WYSIWYG markdown editor for the browser, extracted
from the ttfrog wiki engine. Initial commit.
This commit is contained in:
gsb
2026-04-28 23:30:53 +00:00
parent 5dc50c3c75
commit 5983ce50fd
12 changed files with 3781 additions and 1 deletions
+26
View File
@@ -0,0 +1,26 @@
{
"name": "ribbit",
"version": "1.0.0",
"description": "Zero-dependency WYSIWYG markdown editor for the browser",
"main": "dist/ribbit.js",
"types": "dist/ribbit.d.ts",
"files": [
"dist/",
"src/"
],
"scripts": {
"build": "npm run build:check && npm run build:js && npm run build:min",
"build:check": "tsc --noEmit",
"build:js": "esbuild src/ribbit-editor.ts --bundle --format=iife --sourcemap --outfile=dist/ribbit.js",
"build:min": "esbuild src/ribbit-editor.ts --bundle --format=iife --minify --outfile=dist/ribbit.min.js",
"test": "npm run build && node test/test_hopdown.js"
},
"license": "MIT",
"author": "evilchili",
"devDependencies": {
"@types/jsdom": "^28.0.1",
"esbuild": "^0.28.0",
"jsdom": "^20.0.3",
"typescript": "^6.0.3"
}
}