[PR #1544] [CLOSED] Improve code block path showcase #1434

Closed
opened 2026-03-03 00:26:17 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BoostIO/BoostNote-App/pull/1544
Author: @Komediruzecki
Created: 3/22/2022
Status: Closed

Base: masterHead: feature/improve-code-block-path-showcase


📝 Commits (1)

  • 93fa245 Add pre tag improvements and code path

📊 Changes

2 files changed (+40 additions, -2 deletions)

View changed files

📝 src/design/components/atoms/markdown/CodeFence.tsx (+33 -1)
📝 src/design/lib/codemirror/rehypeCodeMirror.ts (+7 -1)

📄 Description

  • Add path ability to CodeFence

To add a path, write it after a colon after language used in code fence:
```js:the_path/to/something.js
const a = 42;
'''

Spaces are not supported but other symbols are.

image

Showcase:

https://user-images.githubusercontent.com/18196945/159799117-e3f239d9-737b-4e88-8118-1d85acaf6106.mp4


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BoostIO/BoostNote-App/pull/1544 **Author:** [@Komediruzecki](https://github.com/Komediruzecki) **Created:** 3/22/2022 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feature/improve-code-block-path-showcase` --- ### 📝 Commits (1) - [`93fa245`](https://github.com/BoostIO/BoostNote-App/commit/93fa245c4d060b82eef72cdffb8b59500ddd8aad) Add pre tag improvements and code path ### 📊 Changes **2 files changed** (+40 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/design/components/atoms/markdown/CodeFence.tsx` (+33 -1) 📝 `src/design/lib/codemirror/rehypeCodeMirror.ts` (+7 -1) </details> ### 📄 Description - Add path ability to CodeFence To add a path, write it after a colon after language used in code fence: \`\`\`js:the_path/to/something.js const a = 42; \'\'\' Spaces are not supported but other symbols are. ![image](https://user-images.githubusercontent.com/18196945/159799046-0457471a-e165-4eeb-a2f7-fb64993f3588.png) Showcase: https://user-images.githubusercontent.com/18196945/159799117-e3f239d9-737b-4e88-8118-1d85acaf6106.mp4 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 00:26:17 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/BoostNote-App#1434
No description provided.