Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- Fixed an issue with image paths in some circumstances (thanks @rickdoesdev !)
- Added parametersizations for "mixed-kebab" and "mixed_snake" which retain original casing but replace spaces (thanks @NSHenry !)
- Also added a special "obsidian-cal" parameterization which is the same as "mixed-kebab" with duplicate `-` removed for additional compatibility with the Obsidian Consistent Attachment Location plugin (thanks @NSHenry !)
- Added lowecase and uppercase options to parameterizations (thanks @redxtech !)
- Added lowercase and uppercase options to parameterizations (thanks @redxtech !)
- Updated Turndown to v7.1.3 (thanks @WeHat !)
- Updated Readability to v0.5.0 (thanks @WeHat !)
- Fixed some issues with code block parsing and formatting (thanks @WeHat !)
Expand Down Expand Up @@ -44,10 +44,10 @@
## 3.1.0
- Firefox for Android (nightly) support
- Updated Readability and Turndown
- Added GitHub-flavoured Markdown (GFM) plugin to Turndown (adds some mardown table support)
- Added GitHub-flavoured Markdown (GFM) plugin to Turndown (adds some markdown table support)
- Added support for MathJax -> LaTeX (thanks @LeLocTai)
- Disallow slashes in title text replacements
- Suport for Open Graph meta tags as variables (which use `property` instead of `key`)
- Support for Open Graph meta tags as variables (which use `property` instead of `key`)
- Fixed an issue with regex characters like `|` in date formats
- Resolved an extra slash in file name causing images to fail to download in chromium browsers
- Added some support to parse pre elements as code blocks (supports syntax highlighting on GitHub, but not much else yet)
Expand Down
2 changes: 1 addition & 1 deletion PRIVACY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tl;dr: We don't collect anything. Any information we clip from websites remains

## Information Collection and Use
This extension reads data on a website you are visiting when you click the button. The URL, metadata and content are clipped and fed
through third-party javascript libraries to transofrm it into the Markdown you see in the preview.
through third-party javascript libraries to transform it into the Markdown you see in the preview.

None of this data is collected or sent back to any server. Any files you download or text you copy from the extension remains on your
machine and none of it is collected by me.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ in my hat via the following:
- Fixed an issue with image paths in some circumstances (thanks @rickdoesdev !)
- Added parametersizations for "mixed-kebab" and "mixed_snake" which retain original casing but replace spaces (thanks @NSHenry !)
- Also added a special "obsidian-cal" parameterization which is the same as "mixed-kebab" with duplicate `-` removed for additional compatibility with the Obsidian Consistent Attachment Location plugin (thanks @NSHenry !)
- Added lowecase and uppercase options to parameterizations (thanks @redxtech !)
- Added lowercase and uppercase options to parameterizations (thanks @redxtech !)
- Updated Turndown to v7.1.3 (thanks @WeHat !)
- Updated Readability to v0.5.0 (thanks @WeHat !)
- Fixed some issues with code block parsing and formatting (thanks @WeHat !)
Expand Down
4 changes: 2 additions & 2 deletions src/contentScript/contentScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ function notifyExtension() {

function getHTMLOfDocument() {
// make sure a title tag exists so that pageTitle is not empty and
// a filename can be genarated.
// a filename can be generated.
if (document.head.getElementsByTagName('title').length == 0) {
let titleEl = document.createElement('title');
// prepate a good default text (the text displayed in the window title)
// prepare a good default text (the text displayed in the window title)
titleEl.innerText = document.title;
document.head.append(titleEl);
}
Expand Down
2 changes: 1 addition & 1 deletion src/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h2>Custom text ℹ️</h2>
<li><code>{variable:mixed-kebab}</code> - kebab-case: hyphens between words, no case changes</li>
<li><code>{variable:snake}</code> - snake_case: underscores between words, all lowercase</li>
<li><code>{variable:mixed_snake}</code> - snake_case: underscores between words, no case changes</li>
<li><code>{variable:obsidian-cal}</code> - Compatibility for Obsidan Custom Attachment Location: hyphens between words, no case changes, double hypens removed</li>
<li><code>{variable:obsidian-cal}</code> - Compatibility for Obsidan Custom Attachment Location: hyphens between words, no case changes, double hyphens removed</li>
</ul>
</p>
</small>
Expand Down
10 changes: 5 additions & 5 deletions src/options/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const setCurrentChoice = result => {
if (!browser.downloads) {
options.downloadMode = 'contentLink';
document.querySelectorAll("[name='downloadMode']").forEach(el => el.disabled = true)
document.querySelector('#downloadMode p').innerText = "The Downloas API is unavailable in this browser."
document.querySelector('#downloadMode p').innerText = "The Downloads API is unavailable in this browser."
}

const downloadImages = options.downloadImages && options.downloadMode == 'downloadsApi';
Expand Down Expand Up @@ -139,7 +139,7 @@ const setCurrentChoice = result => {
setCheckedValue(document.querySelectorAll("[name='downloadMode']"), options.downloadMode);
// setCheckedValue(document.querySelectorAll("[name='obsidianPathType']"), options.obsidianPathType);

refereshElements();
refreshElements();
}

const restoreOptions = () => {
Expand All @@ -161,7 +161,7 @@ const show = (el, show) => {
el.style.opacity = show ? "1" : "0";
}

const refereshElements = () => {
const refreshElements = () => {
document.getElementById("downloadModeGroup").querySelectorAll('.radio-container,.checkbox-container,.textbox-container').forEach(container => {
show(container, options.downloadMode == 'downloadsApi')
});
Expand Down Expand Up @@ -204,7 +204,7 @@ const inputChange = e => {
browser.contextMenus.removeAll()
createMenus()
save();
refereshElements();
refreshElements();
};
fr.readAsText(e.target.files[0])
}
Expand All @@ -218,7 +218,7 @@ const inputChange = e => {
}

save();
refereshElements();
refreshElements();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/popup/lib/modes/markdown/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ CodeMirror.defineMode("markdown", function(cmCfg, modeCfg) {

// Add this list item's content's indentation to the stack
state.listStack.push(state.indentation);
// Reset inline styles which shouldn't propagate aross list items
// Reset inline styles which shouldn't propagate across list items
state.em = false;
state.strong = false;
state.code = false;
Expand Down
4 changes: 2 additions & 2 deletions user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ This converts the current tab's content as Markdown and copies it to the clipboa
This converts the currently selected section of the web page as Markdown and copies it to the clipboard, so you can paste it in another program

### Copy Tab URL as Markdown Link
Copys the current tab's url and title as a Markdown link to be pasted into another Markdown document
Copies the current tab's url and title as a Markdown link to be pasted into another Markdown document

### Copy Selected Tabs as Markdown Link
Copys all selected tabs into Markdown link to be pasted into another Markdown document
Copies all selected tabs into Markdown link to be pasted into another Markdown document

### Copy Link as Markdown
**Only when right-clicking on a link**
Expand Down