Skip to content

Commit

Permalink
Sk dev (#31)
Browse files Browse the repository at this point in the history
* chore: 📦 Compile

* chore: 📝 Update docs site

* chore(release): 1.4.2

* chore(release): 2.0.0

* chore: 📦 Compile

* chore: 📝 Update docs site

* chore(release): 2.0.1
  • Loading branch information
SkepticMystic authored Apr 20, 2022
1 parent 33e59c5 commit d6196aa
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 69 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
## Obsidian Community Lib Changelog
### [2.0.1](https://github.com/obsidian-community/obsidian-community-lib/compare/2.0.0...2.0.1) (2022-04-20)

## [2.0.0](https://github.com/obsidian-community/obsidian-community-lib/compare/1.4.2...2.0.0) (2022-04-20)


### Features

* :alien: Remove dependency to app as it is now globally accessible ([8dcd393](https://github.com/obsidian-community/obsidian-community-lib/commit/8dcd393b83034d7c576344ef38dea0df0a30e1f3))

## [1.5.0](https://github.com/obsidian-community/obsidian-community-lib/compare/1.4.1...1.5.0) (2022-04-19)


Expand Down
14 changes: 5 additions & 9 deletions dist/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export async function createNewMDNote(newName, currFilePath = "") {
* @returns {string} noteName with '.md' on the end.
*/
export const addMD = (noteName) => {
return noteName.endsWith(".md") ? noteName : noteName + ".md";
return noteName.match(/\.MD$|\.md$/m) ? noteName : noteName + ".md";
};
/**
* Strip '.md' off the end of a note name to get its basename.
Expand All @@ -164,8 +164,8 @@ export const addMD = (noteName) => {
* @returns {string} noteName without '.md'
*/
export const stripMD = (noteName) => {
if (noteName.endsWith(".md")) {
return noteName.split(".md").slice(0, -1).join(".md");
if (noteName.match(/\.MD$|\.md$/m)) {
return noteName.split(/\.MD$|\.md$/m).slice(0, -1).join(".md");
}
else
return noteName;
Expand Down Expand Up @@ -221,12 +221,8 @@ export async function openOrSwitch(dest, event, options = { createNewFile: true
*/
export function isLinked(resolvedLinks, from, to, directed = true) {
var _a, _b;
if (!from.endsWith(".md")) {
from += ".md";
}
if (!to.endsWith(".md")) {
to += ".md";
}
from = addMD(from);
to = addMD(to);
const fromTo = (_a = resolvedLinks[from]) === null || _a === void 0 ? void 0 : _a.hasOwnProperty(to);
if (!fromTo && !directed) {
const toFrom = (_b = resolvedLinks[to]) === null || _b === void 0 ? void 0 : _b.hasOwnProperty(from);
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/highlight.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:root {
--light-code-background: #F5F5F5;
--light-code-background: #FFFFFF;
--dark-code-background: #1E1E1E;
}

Expand Down
4 changes: 2 additions & 2 deletions docs/assets/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 2 additions & 28 deletions docs/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,6 @@ body.dark {
--external-icon: var(--dark-external-icon);
}

h1,
h2,
h3,
h4,
h5,
h6 {
line-height: 1.2;
}

h1 {
font-size: 2em;
margin: 0.67em 0;
Expand Down Expand Up @@ -766,13 +757,12 @@ footer .tsd-legend {

.tsd-flag {
display: inline-block;
padding: 0.25em 0.4em;
padding: 1px 5px;
border-radius: 4px;
color: var(--color-comment-tag-text);
background-color: var(--color-comment-tag);
text-indent: 0;
font-size: 75%;
line-height: 1;
font-size: 14px;
font-weight: normal;
}

Expand Down Expand Up @@ -1396,19 +1386,3 @@ input[type="checkbox"]:checked + .tsd-widget:before {
img {
max-width: 100%;
}

.tsd-anchor-icon {
margin-left: 10px;
vertical-align: middle;
color: var(--color-text);
}

.tsd-anchor-icon svg {
width: 1em;
height: 1em;
visibility: hidden;
}

.tsd-anchor-link:hover > .tsd-anchor-icon svg {
visibility: visible;
}
Loading

0 comments on commit d6196aa

Please sign in to comment.