Skip to content

Commit

Permalink
Merge pull request #27 from k4a-l/fix/remove-style-is-not-working-whe…
Browse files Browse the repository at this point in the history
…n-insert

fix: remove style is not working when insert
  • Loading branch information
k4a-l authored Dec 22, 2024
2 parents 9192204 + fca9300 commit 2d4a980
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-heading-shifter",
"name": "Heading Shifter",
"version": "1.7.0",
"version": "1.7.1",
"minAppVersion": "0.12.0",
"description": "Easily Shift and Change markdown headings.",
"author": "kasahala",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-heading-shifter",
"version": "1.7.0",
"version": "1.7.1",
"description": "Easily shift multiple heading of markdown",
"main": "main.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/features/insertHeading/operation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class InsertHeadingAtCurrentLevel implements EditorOperation {

editor.transaction({
changes: composeLineChanges(editor, [cursorLine], (chunk: string) =>
applyHeading(chunk, headingLevel)
applyHeading(chunk, headingLevel, this.settings)
),
});

Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"1.5.1": "0.12.0",
"1.6.0": "0.12.0",
"1.6.1": "0.12.0",
"1.7.0": "0.12.0"
"1.7.0": "0.12.0",
"1.7.1": "0.12.0"
}

0 comments on commit 2d4a980

Please sign in to comment.