Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03120d8e19 | ||
|
|
178a9e6618 |
No files matched your search
+9
-1
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [1.0.2] - 2025-01-21
|
||||||
|
|
||||||
|
### Security
|
||||||
|
- Fix innerHTML usage in settings to prevent XSS vulnerabilities
|
||||||
|
- Replace innerHTML with safe DOM manipulation methods (createEl, appendText)
|
||||||
|
- Comply with Obsidian security guidelines for plugin development
|
||||||
|
|
||||||
## [1.0.1] - 2025-09-20
|
## [1.0.1] - 2025-09-20
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
@@ -51,6 +58,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- **Settings Management**: Persistent settings with validation and testing capabilities
|
- **Settings Management**: Persistent settings with validation and testing capabilities
|
||||||
- **Modular Architecture**: Clean separation of concerns across services, commands, and API layers
|
- **Modular Architecture**: Clean separation of concerns across services, commands, and API layers
|
||||||
|
|
||||||
[Unreleased]: https://github.com/alexanderkucera/obsidian-freewriting-cleanup/compare/1.0.1...HEAD
|
[Unreleased]: https://github.com/alexanderkucera/obsidian-freewriting-cleanup/compare/1.0.2...HEAD
|
||||||
|
[1.0.2]: https://github.com/alexanderkucera/obsidian-freewriting-cleanup/compare/1.0.1...1.0.2
|
||||||
[1.0.1]: https://github.com/alexanderkucera/obsidian-freewriting-cleanup/compare/1.0.0...1.0.1
|
[1.0.1]: https://github.com/alexanderkucera/obsidian-freewriting-cleanup/compare/1.0.0...1.0.1
|
||||||
[1.0.0]: https://github.com/alexanderkucera/obsidian-freewriting-cleanup/releases/tag/1.0.0
|
[1.0.0]: https://github.com/alexanderkucera/obsidian-freewriting-cleanup/releases/tag/1.0.0
|
||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "freewriting-cleanup",
|
"id": "freewriting-cleanup",
|
||||||
"name": "Freewriting Cleanup",
|
"name": "Freewriting Cleanup",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"minAppVersion": "1.9.12",
|
"minAppVersion": "1.9.12",
|
||||||
"description": "Use AI to clean up your freewriting typos and create a proper paragraph.",
|
"description": "Use AI to clean up your freewriting typos and create a proper paragraph.",
|
||||||
"author": "Alexander Kucera",
|
"author": "Alexander Kucera",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "freewriting-cleanup",
|
"name": "freewriting-cleanup",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "Use AI to clean up your freewriting typos and create a proper paragraph.",
|
"description": "Use AI to clean up your freewriting typos and create a proper paragraph.",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
+20
-11
@@ -147,7 +147,9 @@ export class FreewritingCleanupSettingTab extends PluginSettingTab {
|
|||||||
// Show the current preset for reference
|
// Show the current preset for reference
|
||||||
const presetText = COMMENTARY_PRESETS[this.plugin.settings.commentaryStyle as Exclude<CommentaryStyle, 'custom'>];
|
const presetText = COMMENTARY_PRESETS[this.plugin.settings.commentaryStyle as Exclude<CommentaryStyle, 'custom'>];
|
||||||
const descDiv = containerEl.createDiv({ cls: 'setting-item-description freewriting-cleanup-description' });
|
const descDiv = containerEl.createDiv({ cls: 'setting-item-description freewriting-cleanup-description' });
|
||||||
descDiv.innerHTML = `<strong>Selected style:</strong> ${presetText}`;
|
descDiv.empty();
|
||||||
|
descDiv.createEl('strong', { text: 'Selected style: ' });
|
||||||
|
descDiv.appendText(presetText);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -156,16 +158,23 @@ export class FreewritingCleanupSettingTab extends PluginSettingTab {
|
|||||||
containerEl.createEl('h3', { text: 'Usage Information' });
|
containerEl.createEl('h3', { text: 'Usage Information' });
|
||||||
|
|
||||||
const usageDiv = containerEl.createDiv();
|
const usageDiv = containerEl.createDiv();
|
||||||
usageDiv.innerHTML = `
|
usageDiv.empty();
|
||||||
<p><strong>How to use:</strong></p>
|
|
||||||
<ol>
|
const howToUse = usageDiv.createEl('p');
|
||||||
<li>Select the text you want to clean up in any note</li>
|
howToUse.createEl('strong', { text: 'How to use:' });
|
||||||
<li>Run the "Clean Up Freewriting" command (Ctrl/Cmd+P)</li>
|
|
||||||
<li>The cleaned text will appear below your original text</li>
|
const list = usageDiv.createEl('ol');
|
||||||
</ol>
|
list.createEl('li', { text: 'Select the text you want to clean up in any note' });
|
||||||
<p><strong>Limits:</strong> Maximum 680,000 characters (~150,000 words) per cleanup</p>
|
list.createEl('li', { text: 'Run the "Clean Up Freewriting" command (Ctrl/Cmd+P)' });
|
||||||
<p><strong>Format:</strong> Original text → separator → cleaned text</p>
|
list.createEl('li', { text: 'The cleaned text will appear below your original text' });
|
||||||
`;
|
|
||||||
|
const limits = usageDiv.createEl('p');
|
||||||
|
limits.createEl('strong', { text: 'Limits: ' });
|
||||||
|
limits.appendText('Maximum 680,000 characters (~150,000 words) per cleanup');
|
||||||
|
|
||||||
|
const format = usageDiv.createEl('p');
|
||||||
|
format.createEl('strong', { text: 'Format: ' });
|
||||||
|
format.appendText('Original text → separator → cleaned text');
|
||||||
|
|
||||||
// MARK: - Reset Settings
|
// MARK: - Reset Settings
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
"1.0.0": "1.9.12",
|
"1.0.0": "1.9.12",
|
||||||
"1.0.1": "1.9.12"
|
"1.0.1": "1.9.12",
|
||||||
|
"1.0.2": "1.9.12"
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user