skillwiki 0.2.1-beta.26 → 0.2.1-beta.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -973,6 +973,7 @@ function isLegacyCitationStyle(body) {
973
973
  if (!hasSourcesFooter(body)) return true;
974
974
  const lines = stripFences(body).split("\n");
975
975
  let inSources = false;
976
+ let lastNonBlankWasTable = false;
976
977
  for (const line of lines) {
977
978
  if (/^## Sources\b/.test(line.trim())) {
978
979
  inSources = true;
@@ -980,9 +981,13 @@ function isLegacyCitationStyle(body) {
980
981
  }
981
982
  if (inSources) continue;
982
983
  const matches = [...line.matchAll(MARKER_RE)];
983
- if (matches.length === 0) continue;
984
+ if (matches.length === 0) {
985
+ if (line.trim().length > 0) lastNonBlankWasTable = /^\|/.test(line.trim());
986
+ continue;
987
+ }
984
988
  const markerOnly = line.replace(MARKER_RE, "").trim();
985
- if (markerOnly.length === 0) return true;
989
+ if (markerOnly.length === 0 && !lastNonBlankWasTable) return true;
990
+ lastNonBlankWasTable = false;
986
991
  const lastMatch = matches[matches.length - 1];
987
992
  const afterLast = line.slice(lastMatch.index + lastMatch[0].length).replace(MARKER_RE, "").trim();
988
993
  if (afterLast.length > 0) return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.2.1-beta.26",
3
+ "version": "0.2.1-beta.27",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "skillwiki": "dist/cli.js"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.2.1-beta.26",
3
+ "version": "0.2.1-beta.27",
4
4
  "skills": "./",
5
5
  "description": "Project-aware Karpathy-style knowledge base for Claude Code: 19 prompt-only skills (wiki-*, proj-*, dev-loop-research, using-skillwiki) backed by the deterministic `skillwiki` CLI.",
6
6
  "author": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillwiki/skills",
3
- "version": "0.2.1-beta.26",
3
+ "version": "0.2.1-beta.27",
4
4
  "private": true,
5
5
  "files": [
6
6
  "wiki-*",