Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
76a41f5
initial commit
mcansh Jun 10, 2022
a276235
chore: add remark-frontmatter to run.mjs
mcansh Jun 10, 2022
a6dd3f9
chore: add readme
mcansh Jun 10, 2022
4caaa53
chore: build before publish
mcansh Jun 10, 2022
e1668e3
1.0.0
mcansh Jun 10, 2022
93a62ff
feat: use link children as reference name instead of the host, only a…
mcansh Jun 15, 2022
c0a0840
2.0.0
mcansh Jun 15, 2022
a1dc2a5
chore: add remix docs for better testing
mcansh Jun 15, 2022
37deee5
fix: use image alt text
mcansh Jun 15, 2022
f001ada
chore: add result
mcansh Jun 15, 2022
e5239e7
2.1.0
mcansh Jun 15, 2022
bb85eef
feat: use urls as identifier map
mcansh Jun 15, 2022
5e172fd
2.2.0
mcansh Jun 15, 2022
8718180
chore: add check for no reference, usually happens when image is also…
mcansh Jun 15, 2022
6fa295c
2.3.0
mcansh Jun 15, 2022
6daf9ca
chore: build before publish
mcansh Jun 16, 2022
acfb693
feat: better link text aggregation
mcansh Jun 16, 2022
d6277d5
chore: better type safety
mcansh Jun 16, 2022
cb334a1
2.4.0
mcansh Jun 16, 2022
246a20b
feat: remove trailing slashes
mcansh Jun 16, 2022
942f35c
2.4.1
mcansh Jun 16, 2022
36cac5d
chore(deps): bump to latest
mcansh Dec 10, 2022
f5b85c9
chore: convert "run.mjs" into a test
mcansh Dec 10, 2022
af5ac0e
ci: add test workflow
mcansh Dec 10, 2022
312a551
ci: disable windows until i look into it more
mcansh Dec 10, 2022
badff97
Update readme.markdown
mcansh Dec 10, 2022
97dcb55
chore(deps): bump to latest, add prettier-plugin-organize-imports (#7)
mcansh Aug 8, 2025
e61ca41
chore: add glob devDependency for backwards compatibility (#8)
mcansh Aug 12, 2025
63406fd
Merge remote-tracking branch 'rtw/migration-src' into import-remark-d…
mcansh Aug 12, 2025
f5161fe
fix: update build script to run packages and apps sequentially
mcansh Aug 12, 2025
71a2f97
chore: restructure directory handling and add vitest configuration
mcansh Aug 13, 2025
9170f70
do this for now, but dont merge like this
mcansh Aug 13, 2025
05dd992
chore: update directory shit
mcansh Aug 13, 2025
3e537cb
test: add unit tests for remark-definition-links processing of image …
mcansh Aug 13, 2025
51c223e
test: simplify test for image node without alt text by removing unnec…
mcansh Aug 13, 2025
5874dc0
test: update exclude list
mcansh Aug 13, 2025
99219f2
chore: unit tests for markdown processing
mcansh Aug 20, 2025
246d7db
test: add default reporter in CI
mcansh Aug 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
uses: ./.github/workflows/test.yml
with:
os: '["ubuntu-latest", "macos-latest", "windows-latest"]'
node: '["20", "22", "latest"]'
node: '["18", "20", "22", "latest"]'
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pnpm-lock.yaml
pnpm-workspace.yaml
packages/remark-definition-links/fixtures/
12 changes: 6 additions & 6 deletions apps/http-helmet/remix-classic-compiler/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
{
"private": true,
"name": "example-remix-classic-compiler",
"private": true,
"sideEffects": false,
"type": "module",
"scripts": {
"build": "remix build",
"dev": "remix dev",
"start": "remix-serve ./build/index.js",
"lint": "oxlint",
"start": "remix-serve ./build/index.js",
"typecheck": "tsc -b"
},
"engines": {
"node": ">=18"
},
"dependencies": {
"@mcansh/http-helmet": "^0.13.0",
"@remix-run/node": "^2.16.8",
Expand All @@ -29,5 +27,7 @@
"oxlint": "^1.6.0",
"typescript": "^5.8.3"
},
"sideEffects": false
"engines": {
"node": ">=18"
}
}
12 changes: 6 additions & 6 deletions apps/http-helmet/remix-vite/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
{
"private": true,
"name": "example-remix-vite",
"private": true,
"sideEffects": false,
"type": "module",
"scripts": {
"build": "remix vite:build",
"dev": "remix vite:dev",
"start": "remix-serve ./build/server/index.js",
"lint": "oxlint",
"start": "remix-serve ./build/server/index.js",
"typecheck": "tsc"
},
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@mcansh/http-helmet": "^0.13.0",
"@remix-run/node": "2.16.8",
Expand All @@ -30,5 +28,7 @@
"vite": "^6.3.5",
"vite-tsconfig-paths": "^5.1.4"
},
"sideEffects": false
"engines": {
"node": ">=18.0.0"
}
}
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"private": true,
"name": "packages",
"author": "Logan McAnsh <[email protected]> (https://mcan.sh/)",
"private": true,
"license": "MIT",
"author": "Logan McAnsh <[email protected]> (https://mcan.sh/)",
"type": "module",
"workspaces": [
"packages/*",
"examples/*"
],
"scripts": {
"build:packages": "pnpm run --recursive --parallel --filter \"./packages/**\" build",
"build": "pnpm run build:packages && pnpm run build:apps",
"build:apps": "pnpm run --recursive --parallel --filter \"./apps/**\" build",
"build": "pnpm run --sequential \"/^build:.*/\"",
"build:packages": "pnpm run --recursive --parallel --filter \"./packages/**\" build",
"changeset": "changeset",
"changeset:release": "pnpm run build && changeset publish",
"changeset:version": "changeset version && node ./scripts/remove-prerelease-changelogs.js && pnpm install --lockfile-only",
Expand All @@ -22,7 +26,6 @@
"typecheck": "pnpm run --recursive typecheck",
"validate": "run-p build lint format typecheck"
},
"packageManager": "[email protected]+sha512.37ebf1a5c7a30d5fabe0c5df44ee8da4c965ca0c5af3dbab28c3a1681b70a256218d05c81c9c0dcf767ef6b8551eb5b960042b9ed4300c59242336377e01cfad",
"dependencies": {
"@changesets/cli": "^2.29.5",
"@manypkg/get-packages": "^3.0.0",
Expand All @@ -34,15 +37,12 @@
"pkg-pr-new": "^0.0.54",
"prettier": "^3.6.2",
"prettier-plugin-organize-imports": "^4.1.0",
"prettier-plugin-sort-package-json": "^1.1.0",
"prettier-plugin-packagejson": "^2.5.19",
"prompt-confirm": "^2.0.4",
"semver": "^7.7.2",
"typedoc": "^0.28.7",
"vitest": "catalog:",
"wrangler": "^4.25.0"
},
"workspaces": [
"packages/*",
"examples/*"
]
"packageManager": "[email protected]+sha512.37ebf1a5c7a30d5fabe0c5df44ee8da4c965ca0c5af3dbab28c3a1681b70a256218d05c81c9c0dcf767ef6b8551eb5b960042b9ed4300c59242336377e01cfad"
}
54 changes: 27 additions & 27 deletions packages/http-helmet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"url": "git+https://github.com/mcansh/packages.git",
"directory": "./packages/http-helmet"
},
"author": "Logan McAnsh <[email protected]> (https://mcan.sh)",
"funding": [
{
"type": "github",
Expand All @@ -19,17 +18,11 @@
}
],
"license": "MIT",
"author": "Logan McAnsh <[email protected]> (https://mcan.sh)",
"type": "module",
"scripts": {
"build": "tsdown",
"dev": "tsdown --watch",
"prepublishOnly": "npm run build",
"test": "vitest --project http-helmet",
"typecheck": "tsc"
"imports": {
"#*": "./*"
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.cts",
"exports": {
".": {
"import": "./dist/index.js",
Expand All @@ -41,27 +34,26 @@
},
"./package.json": "./package.json"
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"source": "./src/index.ts",
"types": "./dist/index.d.cts",
"files": [
"dist",
"README.md",
"package.json"
],
"scripts": {
"build": "tsdown",
"dev": "tsdown --watch",
"prepublishOnly": "npm run build",
"test": "vitest --project http-helmet",
"typecheck": "tsc"
},
"dependencies": {
"change-case": "^5.4.4",
"type-fest": "^4.41.0"
},
"peerDependencies": {
"react": ">=18.0.0 || >=19.0.0",
"react-dom": ">=18.0.0 || >=19.0.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"react-dom": {
"optional": true
}
},
"devDependencies": {
"@arethetypeswrong/core": "catalog:",
"@testing-library/dom": "^10.4.0",
Expand All @@ -80,12 +72,20 @@
"typescript": "catalog:",
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">=18.0.0 || >=19.0.0",
"react-dom": ">=18.0.0 || >=19.0.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"react-dom": {
"optional": true
}
},
"publishConfig": {
"access": "public",
"provenance": true
},
"imports": {
"#*": "./*"
},
"source": "./src/index.ts"
}
}
11 changes: 11 additions & 0 deletions packages/remark-definition-links/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# remark-definition-links

This plugin is based on [remark-reference-links][reference-links] and [remark-defsplit][defsplit] in that it converts inline links to a definition list, but unlike remark-defsplit it puts them all at the bottom

## Usage

An example of this plugin in action can be found in [run.mjs][example-code]

[reference-links]: https://github.com/remarkjs/remark-reference-links
[defsplit]: https://github.com/remarkjs/remark-defsplit
[example-code]: https://github.com/mcansh/remark-definition-links/blob/main/run.mjs
Loading
Loading