Skip to content

Commit

Permalink
Fix #8
Browse files Browse the repository at this point in the history
  • Loading branch information
scottwillmoore committed May 7, 2023
1 parent 29aa7c4 commit eb0987d
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 14 deletions.
18 changes: 14 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,29 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.1] - 2023-04-18
## [1.1.2] - 2023-05-07

### Changed

- Add test cases for footnotes to the Obsidian vault.

### Fixed

- Rename the symbolic link to this plugin in the Obsidian vault.
- Major update to the internal link parser. #6.
- Modified the behaviour of the markdown post processor. #6.
- Do not show icons for footnotes. #8.

## [1.1.1] - 2023-04-18

### Changed

- Update many notes in the Obsidian vault.
- Update the NPM dependencies.

### Fixed

- Rename the symbolic link to this plugin in the Obsidian vault.
- Major update to the internal link parser. #6.
- Modified the behaviour of the markdown post processor. #6.

## [1.1.0] - 2023-04-10

### Added
Expand Down
4 changes: 0 additions & 4 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Tasks

- [ ] Add issue labels for GitHub
- [ ] Add issue templates for GitHub
- [ ] Bug report
- [ ] Feature request
- [ ] Allow users to customize the link icons
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Short links",
"description": "An Obsidian plugin to display short internal links.",
"author": "Scott Moore",
"version": "1.1.1",
"version": "1.1.2",
"minAppVersion": "1.1.1",
"isDesktopOnly": false
}
2 changes: 1 addition & 1 deletion notes/.obsidian/core-plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"command-palette",
"slash-command",
"editor-status",
"starred",
"bookmarks",
"markdown-importer",
"zk-prefixer",
"random-note",
Expand Down
15 changes: 15 additions & 0 deletions notes/Footnotes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
This is a footnote [^1].

[^1]: This is the referenced text.

This is a footnote than spans multiple lines [^2].

[^2]: Just add two spaces...
To the start of each new line.
It doesn't render very nice in the editing view.

This is a named footnote [^note].

[^note]: Named footnotes still appears as numbers, but can make it easier to identify and references.

You can create an inline footnote ^[Just put the caret outside the square brackets.].
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "An Obsidian plugin to display short internal links.",
"author": "Scott Moore",
"license": "MIT",
"version": "1.1.1",
"version": "1.1.2",
"scripts": {
"build": "node --require esbuild-register scripts/build.ts",
"format": "prettier --write .",
Expand Down
4 changes: 2 additions & 2 deletions sources/editorExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const createDecorationSet = (

// Parse internal links
// [[
if (cursor.name.contains("formatting-link-start")) {
if (cursor.name.contains("formatting-link-start") && !cursor.name.contains("footref")) {
// [[Note]]
// ........
// ^
Expand Down Expand Up @@ -249,7 +249,7 @@ export const createEditorExtension: CreateEditorExtension = (plugin) =>
// NOTE: This extension is only used for development to analyze the structure of
// the CodeMirror syntax tree.

export const consoleExtension = ViewPlugin.define(() => ({
export const consoleEditorExtension = ViewPlugin.define(() => ({
update(update) {
if (update.selectionSet || update.viewportChanged) {
console.clear();
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"1.0.1": "0.16.3",
"1.0.2": "0.16.3",
"1.1.0": "1.1.1",
"1.1.1": "1.1.1"
"1.1.1": "1.1.1",
"1.1.2": "1.1.1"
}

0 comments on commit eb0987d

Please sign in to comment.