Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 3 additions & 2 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ jobs:
const owner = context.repo.owner;
const isFork = context.payload.pull_request.head.repo.full_name !== context.payload.repository.full_name;

// Generate htmlpreview.github.io link for index.html
const previewUrl = `https://htmlpreview.github.io/?https://github.com/${owner}/${repo}/blob/${branch}/index.html`;
// Generate htmlpreview.github.io link for index.html with cache buster
const cacheBuster = Date.now();
const previewUrl = `https://htmlpreview.github.io/?https://github.com/${owner}/${repo}/blob/${branch}/index.html?t=${cacheBuster}`;

let message = `## 🎉 Build Successful!\n`;

Expand Down
20 changes: 15 additions & 5 deletions bookmarklets/json-viewer.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// JSON Viewer
// 複雑にネストされたJSONデータをマークダウン形式で綺麗に表示するビューアー
// 📊
// v29
// 2026-03-14
// v30
// 2026-07-01

(function() {
try {
Expand Down Expand Up @@ -63,9 +63,19 @@

// Centralized version management
const VERSION_INFO = {
CURRENT: 'v29',
LAST_UPDATED: '2026-03-14',
CURRENT: 'v30',
LAST_UPDATED: '2026-07-01',
HISTORY: [
{
version: 'v30',
date: '2026-07-01',
features: [
'🐛 TOCの見出しID重複バグを修正:`_data`をクリックしても`data`に遷移してしまう問題',
'根本原因:makeIdUniqueのfalsy判定(`!idCounter[baseId]`)でカウンタが0のときにリセットされていた',
'修正:`idCounter[baseId] === undefined`に変更。同baseIdの2回目以降は`-1`サフィックスが付く',
'`[0].data`と`[0]._data`、2回目の`[0].code`などアンダースコア有無でID衝突していた問題を解決'
]
},
{
version: 'v29',
date: '2026-03-14',
Expand Down Expand Up @@ -1165,7 +1175,7 @@

// Make ID unique by adding a counter if necessary
function makeIdUnique(baseId, idCounter) {
if (!idCounter[baseId]) {
if (idCounter[baseId] === undefined) {
idCounter[baseId] = 0;
return baseId;
}
Expand Down
8 changes: 4 additions & 4 deletions index.html

Large diffs are not rendered by default.

Loading