Skip to content

Commit 9701106

Browse files
Update to v2.1.5
1 parent aa56dd8 commit 9701106

File tree

4 files changed

+283
-99
lines changed

4 files changed

+283
-99
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## v2.1.5 (07/11/2025)
2+
- Feature updates in v2.1.5:
3+
- Added a table alignment dropdown consolidating left/center/right controls.
4+
- Added a wrap-around option to Find/Replace navigation with status messaging.
5+
- Refined toolbar dropdown styling with matching dark-mode treatment.
6+
- Fixes:
7+
- Improved dark-mode preview readability for text and highlighted matches.
8+
- Maintenance:
9+
- Bumped application version to v2.1.5.
10+
111
## v2.1.4 (03/11/2025)
212
- UI consistency improvements across the app:
313
- Standardized toolbar buttons to a consistent icon + text pattern.

README.md

Lines changed: 64 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -6,96 +6,70 @@ Project completed by 100% solo with moderate use of AI, templates and inspriatio
66
Any feedbacks can go to: @objectpresents (Discord), objectpresents.bsky.social (Bluesky) or lightingperson_2763@outlook.com.vn
77

88
## Changelogs:
9-
#### v2.1.4 (03.11.2025)
10-
- UI consistency improvements across the app:
11-
- Standardized toolbar buttons to a consistent icon + text pattern.
12-
- Unified popup title bars with blue headers, close buttons, rounded corners, and consistent shadows.
13-
- Redesigned Find/Replace as a centered dialog with header, improved spacing, and dark-mode support.
14-
- Replaced image cap prompt with a proper Image Cap dialog (validation, persistence, Enter-to-confirm).
15-
- Dark-mode scrollbars across browsers (added color-scheme hints and custom scrollbar styling).
16-
- Bumped application version to v2.1.4.
17-
#### v2.1.3 (29/10/2025)
18-
Features and improvements in v2.1.3:
19-
20-
- Implemented heading rendering inside blockquotes so Markdown headings within ">" blocks render as proper HTML headings.
21-
- Added "image from link" auto-resize option (dialog checkbox). When enabled, the editor measures the linked image client-side and inserts responsive <img> markup with a configurable maximum width (default: 800px). Runtime cap can be adjusted via the toolbar control; preferences are persisted to localStorage (keys: md-auto-resize-images, md-auto-resize-max). Toolbar control id: #btn-image-cap.
22-
- Word wrap (beta) improvements and details:
23-
- Works in both the editor and the preview. Long words and URLs wrap at safe boundaries to avoid horizontal scrolling.
24-
- Code blocks use white-space: pre-wrap while preserving indentation; inline code wraps without breaking layout.
25-
- Blockquotes, lists, and table cells are hardened to wrap content cleanly without overflow.
26-
- Toggle via toolbar button (#btn-wordwrap) or keyboard shortcut (Ctrl+Alt+W / Ctrl+Shift+W).
27-
- Preference persists in localStorage under md-word-wrap.
28-
- Credits: feature made by LoserFan2020 with contributions from Phuc and Hung.
29-
- Misc: reordered blockquote/header parsing so headings inside blockquotes render correctly, fixed related JavaScript and CSS syntax issues encountered during development, and applied small UX polish to dialogs and controls.
30-
#### v2.2.0-beta-1 (28/10/2025)
31-
32-
- Added support for editing directly in preview pane
33-
- Implemented real-time synchronization between editor and preview
34-
- Enhanced markdown-to-HTML conversion for better editing experience
35-
- Improved bidirectional editing capabilities
36-
- Added more basic table functionality
37-
- Implemented automatic update checking system
38-
- All features from v2.1.4, v2.1.3, v2.1.2 ported to v2.2:
39-
- Word wrap (beta) with toolbar button and keyboard shortcut
40-
- Image auto-resize feature with configurable maximum width
41-
- Heading rendering inside blockquotes
42-
- Unified popup styling with blue headers
43-
- Dark-mode scrollbars with color-scheme support
44-
- Centered Find/Replace dialog
45-
- Undo/Redo history dropdown on hover
46-
- Improved undo/redo system with 250ms throttle for reduced lag
47-
- Dark-mode styling for history dropdown
48-
#### v1.3.2 (27/10/2025):
49-
- Major Improvements for v1.3.2:
50-
- Replaced regex-based parser with markdown-it for better CommonMark support
51-
- Added syntax highlighting for code blocks using highlight.js integration
52-
- Added support for local library vendoring (vendor-libs.ps1)
53-
- Added proper support for backslash-escaped markdown characters
54-
- Removed warning banner due to backlash
55-
- Added in-browser Tests button for smoke testing
56-
#### v2.1.2 (26/10/2025):
9+
#### v2.1.5 (07/11/2025)
10+
- Feature updates in v2.1.5:
11+
- Added table alignment dropdown consolidating column alignment controls.
12+
- Introduced wrap-around toggle for Find/Replace navigation.
13+
- Improved toolbar dropdown styling with dark-mode support.
14+
- Fixes:
15+
- Improved dark-mode preview readability for text and highlighted matches.
16+
- Maintenance:
17+
- Bumped application version to v2.1.5.
18+
19+
#### v2.1.4 (03/11/2025)
20+
- UI consistency: standardized toolbar buttons; unified popup title bars.
21+
- Find/Replace redesigned as dialog; Image Cap has proper dialog.
22+
- Dark-mode scrollbars across browsers; meta color-scheme hints.
23+
- Version bumped to v2.1.4.
24+
25+
#### v2.1.2 (26/10/2025)
5726
- Small fixes and polish for v2.1.2:
58-
- Fix dark-mode styling for the undo/redo history dropdown
59-
- Keep history dropdown visible when hovering between the toolbar button and the menu
60-
- Move changelogs to a local view and ensure the popup respects dark mode
61-
- Improved undo/redo system with reduced lag (250ms throttle)
62-
- Fixed changelog formatting and removed duplicate entries
63-
- Renamed README.md to CHANGELOG.md for better organization
64-
- Bumped application version to v2.1.2
65-
66-
#### v1.3.1 and v2.1.1 (25/10/2025)
67-
No major updates for v2.1.1, as we do it to update v1.3.\
68-
New feature: Check for Updates (This was going to be included in v2.2, but because of v1.3 security patch, it have to be added)\
69-
We patched the Cross-Site Scripting (XSS) security vulnerability as a result, and Security Mode turned ON by default.
27+
- Fix dark-mode styling for the undo/redo history dropdown.
28+
- Keep history dropdown visible when hovering between the toolbar button and the menu; close on outside click.
29+
- Move changelogs to a local view and ensure the popup respects dark mode.
30+
- Bumped application version to v2.1.2.
31+
32+
#### v2.1.1 (25/10/2025)
33+
No major features; maintenance and polish.
34+
- Added "Check for Updates" feature.
35+
36+
#### v1.3.1 (25/10/2025)
37+
Security patch applied in v1.3.1 only.
38+
- Patched a Cross-Site Scripting (XSS) vulnerability that affected older code paths.
39+
- Security Mode was enabled as part of the v1.3.1 patch to mitigate risk.
40+
7041
#### v1.3 (25/10/2025)
71-
We have updated those features for you and fixes bugs, for legacy apps.\
72-
New feaures such as Find and Replace are added.\
73-
We discovered a major security vulnerability involving Cross-Site Scripting (XSS), which could be exploited for malicious purposes.
42+
Improvements and bug fixes for legacy apps.
43+
- Added Find and Replace.
44+
7445
#### v2.1 (23/10/2025)
75-
We have updated those features for you and fixes bugs.\
76-
New feaures such as HR, Task, Align Table, Subscript and Superscript, and many more features. More features coming soon.
77-
#### v2.0.5 (1/10/2025)
78-
Happy Halloween! We have updated those features for you and fixes bugs.\
79-
New changelogs and help layout.\
80-
Fixed broken dark mode (most of the time, it's still inconsistent)
81-
#### v2.0.4 (25/9/2025)
82-
Popup UI Changed to be modular and most of them are centered (not consistent yet, coming soon)\
83-
Settings finally removed (as a bug)\
84-
Support for Full Blockquote, Proper number list support, Espcaing characters
85-
#### v2.0.3 (24/9/2025)
86-
Added Regex search/replace mode (toggleable); Regex flags (m/s), search history dropdown, and match highlighting in preview.
87-
#### v2.0.2 (21/9/2025)
88-
Find and replace support
89-
#### v2.0.1 (19/9/2025)
90-
Added support for .txt\
91-
Fixed editor UI bug where it breaks after resizing spilt mode
92-
#### v2.0 (18/9/2025):
93-
Changed structure of the code - from then it's not the same and need to be downloaded manually.
94-
#### v1.2 (17/9/2025):
95-
Fixed issue where Table format didn't work outright.
96-
#### v1.1 (16/9/2025):
97-
New icon design\
98-
Minor bug fixed
99-
#### v1.0 (14/1/2024):
100-
Orginial Markdown Editior, forked from Lancer Fan Club Forums.\
101-
Features Headings, Basic syntax, code support, Basic table support, and very simple UI.
46+
Updated features and bug fixes.
47+
- New features: HR, Task items, Table alignment, Subscript, Superscript, and more.
48+
49+
#### v2.0.5 (01/10/2025)
50+
Happy Halloween! UI and layout updates; help/changelog layouts improved.
51+
52+
#### v2.0.4 (25/09/2025)
53+
Popup UI changed to be more modular and centered; escaping and list fixes.
54+
55+
#### v2.0.3 (24/09/2025)
56+
Added regex search/replace with flags and preview highlighting.
57+
58+
#### v2.0.2 (21/09/2025)
59+
Find and replace support.
60+
61+
#### v2.0.1 (19/09/2025)
62+
Added support for .txt files; fixed split-mode resize bug.
63+
64+
#### v2.0 (18/09/2025)
65+
Major internal restructuring.
66+
67+
#### v1.2 (17/09/2025)
68+
Fixed table formatting issues.
69+
70+
#### v1.1 (16/09/2025)
71+
New icon design and minor bug fixes.
72+
73+
#### v1.0 (14/01/2024)
74+
Original Markdown Editor, forked from Lancer Fan Club Forums.
75+
Features: headings, basic syntax, code support, table support, and a simple UI.

markdown_editor.css

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ body.dark-mode ::-webkit-scrollbar-corner {
156156
color: #b0b0b0;
157157
border-bottom: 1px solid #444;
158158
}
159+
body.dark-mode .md-match { background:#5b4b1d; color:#fff }
160+
body.dark-mode .md-match-current { background:#8c6f2d; color:#fff; box-shadow:0 0 0 1px rgba(255,255,255,0.15); }
159161
.dark-mode .splitter {
160162
background-color: #444;
161163
}
@@ -382,6 +384,73 @@ body {
382384
border-right: none;
383385
}
384386

387+
.toolbar-dropdown {
388+
position: relative;
389+
}
390+
391+
.toolbar-dropdown .toolbar-dropdown-menu {
392+
position: absolute;
393+
top: calc(100% + 4px);
394+
left: 0;
395+
background: #fff;
396+
border: 1px solid #ccc;
397+
box-shadow: 0 2px 6px rgba(0,0,0,0.12);
398+
border-radius: 4px;
399+
display: none;
400+
z-index: 2000;
401+
min-width: 160px;
402+
padding: 4px 0;
403+
}
404+
405+
.toolbar-dropdown.open .toolbar-dropdown-menu {
406+
display: block;
407+
}
408+
409+
.toolbar-dropdown-item {
410+
display: flex;
411+
align-items: center;
412+
gap: 8px;
413+
width: 100%;
414+
padding: 6px 12px;
415+
background: none;
416+
border: none;
417+
text-align: left;
418+
font: inherit;
419+
cursor: pointer;
420+
}
421+
422+
.toolbar-dropdown-item:hover,
423+
.toolbar-dropdown-item:focus {
424+
background-color: #f0f0f0;
425+
outline: none;
426+
}
427+
428+
body.dark-mode .toolbar-dropdown .toolbar-dropdown-menu {
429+
background: #2b2b2b;
430+
border-color: #444;
431+
color: #e0e0e0;
432+
}
433+
434+
body.dark-mode .toolbar-dropdown-item:hover,
435+
body.dark-mode .toolbar-dropdown-item:focus {
436+
background-color: #333;
437+
}
438+
body.dark-mode .preview-content h1,
439+
body.dark-mode .preview-content h2,
440+
body.dark-mode .preview-content h3,
441+
body.dark-mode .preview-content h4,
442+
body.dark-mode .preview-content h5,
443+
body.dark-mode .preview-content h6 {
444+
color: #f1f1f1;
445+
}
446+
447+
body.dark-mode .preview-content p,
448+
body.dark-mode .preview-content ul,
449+
body.dark-mode .preview-content ol,
450+
body.dark-mode .preview-content li {
451+
color: #d9d9d9;
452+
}
453+
385454
.toolbar-btn {
386455
background-color: #f8f8f8;
387456
border: 1px solid #ccc;

0 commit comments

Comments
 (0)