Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ariesdevil/markdown-clipper
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: deathau/markdownload
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.

Commits on May 12, 2020

  1. Copy the full SHA
    80e0a22 View commit details
  2. Update README.md

    deathau authored May 12, 2020
    Copy the full SHA
    6181671 View commit details

Commits on May 13, 2020

  1. Copy the full SHA
    0e4a1bd View commit details
  2. Copy the full SHA
    53dc7aa View commit details
  3. updated store links

    deathau authored May 13, 2020
    Copy the full SHA
    f2f5c76 View commit details

Commits on May 14, 2020

  1. Added "promo" media

    gordonped committed May 14, 2020
    Copy the full SHA
    de99208 View commit details
  2. Copy the full SHA
    0f67cba View commit details
  3. Copy the full SHA
    508571d View commit details
  4. Added a title text box to change the title before download

    Thinking of using it to generate ZK ids or something in the future
    gordonped committed May 14, 2020
    Copy the full SHA
    58d9d93 View commit details
  5. Copy the full SHA
    0dcc3e4 View commit details
  6. Copy the full SHA
    67222fe View commit details
  7. Added 128x128 app icon

    Hopefully this will appease google? https://developer.chrome.com/webstore/images#icons
    gordonped committed May 14, 2020
    Copy the full SHA
    2b7a7a2 View commit details
  8. download will respect browser setting

    rather than requesting the saveAs dialog
    as per @jarodise (Obsidian discord) requiest
    gordonped committed May 14, 2020
    Copy the full SHA
    2d69522 View commit details
  9. updated version number

    gordonped committed May 14, 2020
    Copy the full SHA
    b4974a0 View commit details
  10. added a 48x48 icon

    ... just in case
    gordonped committed May 14, 2020
    Copy the full SHA
    affd0d4 View commit details
  11. Added Edge assets

    gordonped committed May 14, 2020
    Copy the full SHA
    c8c0df5 View commit details
  12. Copy the full SHA
    a97dd01 View commit details
  13. Copy the full SHA
    a20f8e6 View commit details
  14. Copy the full SHA
    6033e50 View commit details
  15. Copy the full SHA
    2c62e46 View commit details
  16. Copy the full SHA
    9fe53bd View commit details
  17. removed leading slashes on icon paths

    on a hunch it might fix my issue with the missing chrome store icon for the next version (https://stackoverflow.com/q/61788218/304786)
    gordonped committed May 14, 2020
    Copy the full SHA
    2778288 View commit details
  18. Add a base element to the DOM with current URL

    This makes the DOM parse with a correct base URI instead of the extension's base URI, which fixes deathau#1
    gordonped committed May 14, 2020
    Copy the full SHA
    07327ed View commit details
  19. bumped version number

    gordonped committed May 14, 2020
    Copy the full SHA
    dee0495 View commit details
  20. Removed readability debug

    gordonped committed May 14, 2020
    Copy the full SHA
    bf563bf View commit details

Commits on May 15, 2020

  1. Copy the full SHA
    da70418 View commit details
  2. bumped version number

    gordonped committed May 15, 2020
    Copy the full SHA
    f716c13 View commit details

Commits on May 20, 2020

  1. Added a Privacy Policy

    Microsoft wants one for the Edge extension.
    deathau authored May 20, 2020
    Copy the full SHA
    d19f9d3 View commit details

Commits on May 21, 2020

  1. Copy the full SHA
    a26457b View commit details

Commits on May 25, 2020

  1. Fix an issue with non-breaking spaces

    Well, it's not MY issue, exactly, but it's causing @liCat on Obsidian a bit of grief.
    gordonped committed May 25, 2020
    Copy the full SHA
    2e3bcf3 View commit details
  2. Copy the full SHA
    befdc9c View commit details

Commits on Aug 25, 2020

  1. Added options section

    includes functionality to add front and back-matter, with replaceable template parts, including current date (courtesy of moment.js)
    gordonped committed Aug 25, 2020
    Copy the full SHA
    bde9b08 View commit details
  2. bumped version number

    gordonped committed Aug 25, 2020
    Copy the full SHA
    625a43e View commit details
  3. updated readme

    gordonped committed Aug 25, 2020
    Copy the full SHA
    ea0bad7 View commit details
  4. updated readme again

    gordonped committed Aug 25, 2020
    Copy the full SHA
    9cb3d87 View commit details
  5. Copy the full SHA
    508302b View commit details

Commits on Sep 8, 2020

  1. Copy the full SHA
    029220f View commit details
  2. Added options to clip selected text and include templates to popup

    The code could probably use a bit of cleanup and refactoring, but the functionality is there.
    Fixes #2
    gordonped committed Sep 8, 2020
    Copy the full SHA
    646e699 View commit details
  3. Added title template

    Fixes #3
    gordonped committed Sep 8, 2020
    Copy the full SHA
    39c849a View commit details
  4. Copy the full SHA
    eecff30 View commit details
  5. Copy the full SHA
    bbe5534 View commit details
  6. Refactored a lot of the code to make it simpler

    Especially making promise stuff use await instead of chained .then()s which were getting hard to keep track of.
    gordonped committed Sep 8, 2020
    Copy the full SHA
    6d5a14d View commit details

Commits on Sep 9, 2020

  1. Added functionality to download all tabs as markdown

    Also fixed an issue with the context menu being out of sync with the settings
    gordonped committed Sep 9, 2020
    Copy the full SHA
    3e8feb6 View commit details
  2. Bumped version number and updated readme

    Added a bunch of new screenshots as well
    gordonped committed Sep 9, 2020
    Copy the full SHA
    a1429e5 View commit details

Commits on Sep 10, 2020

  1. Copy the full SHA
    6a51a58 View commit details
  2. bumped version number

    gordonped committed Sep 10, 2020
    Copy the full SHA
    1f406e4 View commit details

Commits on Sep 25, 2020

  1. Changes for preliminary safari support

    - Added fallback for lack of download permission to still download a file
    - Moved Download All Tabs functionality to `all` context menu (while retaining `tab` in firefox for now)
    - Still more work to be done (context menus not working correctly?)
    gordonped committed Sep 25, 2020
    Copy the full SHA
    ead825e View commit details

Commits on Oct 8, 2020

  1. Copy the full SHA
    3cd47ee View commit details

Commits on Oct 9, 2020

  1. Merge pull request #23 from deanrobertcook/patch-1

    Fix typo on options page
    deathau authored Oct 9, 2020
    Copy the full SHA
    1e15a71 View commit details

Commits on Oct 27, 2020

  1. Copy the full SHA
    09ea90d View commit details
Showing with 28,162 additions and 1,248 deletions.
  1. +2 −0 .github/FUNDING.yml
  2. +18 −0 .github/workflows/addIssuesToProject.yml
  3. +5 −1 .gitignore
  4. +136 −0 CHANGELOG.md
  5. +23 −0 PRIVACY.md
  6. +80 −8 README.md
  7. +0 −87 background/background.js
  8. +0 −930 background/turndown.js
  9. +0 −11 contentScript/pageScrapper.js
  10. BIN icons/favicon-16x16.png
  11. BIN icons/favicon-192x192.png
  12. BIN icons/favicon-32x32.png
  13. BIN icons/favicon-512x512.png
  14. +0 −39 manifest.json
  15. BIN media/Chrome.Screenshot.1.png
  16. BIN media/Chrome.Screenshot.ClipSelection.png
  17. BIN media/Chrome.Screenshot.DownloadAll1.png
  18. BIN media/Chrome.Screenshot.Settings1.png
  19. BIN media/Chrome.Screenshot.Settings2.png
  20. BIN media/Chrome.Screenshot.Settings3.png
  21. BIN media/Edge Logo.png
  22. BIN media/Firefox.Screenshot.1.png
  23. BIN media/Firefox.Screenshot.ClipSelection.png
  24. BIN media/Firefox.Screenshot.DownloadAll1.png
  25. BIN media/Firefox.Screenshot.DownloadAll2.png
  26. BIN media/Firefox.Screenshot.Settings1.png
  27. BIN media/Firefox.Screenshot.Settings2.png
  28. BIN media/Firefox.Screenshot.Settings3.png
  29. BIN media/Marquee Promo.jpg
  30. BIN media/Marquee Promo.png
  31. BIN media/Safari.Screenshot.1.png
  32. BIN media/Safari.Screenshot.ClipSelection.png
  33. BIN media/Safari.Screenshot.DownloadAll.png
  34. BIN media/Safari.Screenshot.Settings1.png
  35. BIN media/Safari.Screenshot.Settings2.png
  36. BIN media/SmallPromo.png
  37. BIN media/large promo.jpg
  38. BIN media/small Promo.jpg
  39. +0 −13 popup/clipSite.html
  40. +0 −26 popup/clipSite.js
  41. +673 −133 { → src}/background/Readability.js
  42. +773 −0 src/background/apache-mime-types.js
  43. +1,026 −0 src/background/background.js
  44. +2 −0 src/background/moment.min.js
  45. +165 −0 src/background/turndown-plugin-gfm.js
  46. +973 −0 src/background/turndown.js
  47. +8 −0 src/browser-polyfill.min.js
  48. +170 −0 src/contentScript/contentScript.js
  49. +11 −0 src/contentScript/pageContext.js
  50. BIN src/icons/appicon-128x128.png
  51. BIN src/icons/favicon-16x16.png
  52. BIN src/icons/favicon-192x192.png
  53. BIN src/icons/favicon-32x32.png
  54. BIN src/icons/favicon-48x48.png
  55. BIN src/icons/favicon-512x512.png
  56. BIN src/icons/icon1024x1024.png
  57. BIN src/icons/icon256x256.png
  58. BIN src/icons/icon64x64.png
  59. +96 −0 src/manifest.json
  60. +359 −0 src/options/options.css
  61. +384 −0 src/options/options.html
  62. +313 −0 src/options/options.js
  63. +9,878 −0 src/package-lock.json
  64. +13 −0 src/package.json
  65. +350 −0 src/popup/lib/codemirror.css
  66. +9,800 −0 src/popup/lib/codemirror.js
  67. +886 −0 src/popup/lib/modes/markdown/markdown.js
  68. +53 −0 src/popup/lib/xq-dark.css
  69. +43 −0 src/popup/lib/xq-light.css
  70. +207 −0 src/popup/popup.css
  71. +35 −0 src/popup/popup.html
  72. +242 −0 src/popup/popup.js
  73. +174 −0 src/shared/context-menus.js
  74. +41 −0 src/shared/default-options.js
  75. +241 −0 user-guide.md
  76. BIN web-ext-artifacts/markdown_clipper-1.0-fx.xpi
  77. +33 −0 xcode/MarkDownload - Markdown Web Clipper/MarkDownload - Markdown Web Clipper Extension/Info.plist
  78. +10 −0 ...nload - Markdown Web Clipper Extension/MarkDownload___Markdown_Web_Clipper_Extension.entitlements
  79. +26 −0 ...arkdown Web Clipper/MarkDownload - Markdown Web Clipper Extension/SafariWebExtensionHandler.swift
  80. +542 −0 ...MarkDownload - Markdown Web Clipper/MarkDownload - Markdown Web Clipper.xcodeproj/project.pbxproj
  81. +25 −0 xcode/MarkDownload - Markdown Web Clipper/MarkDownload - Markdown Web Clipper/AppDelegate.swift
  82. +11 −0 ...eb Clipper/MarkDownload - Markdown Web Clipper/Assets.xcassets/AccentColor.colorset/Contents.json
  83. +68 −0 ... Web Clipper/MarkDownload - Markdown Web Clipper/Assets.xcassets/AppIcon.appiconset/Contents.json
  84. BIN ...lipper/MarkDownload - Markdown Web Clipper/Assets.xcassets/AppIcon.appiconset/appicon-128x128.png
  85. BIN ... Clipper/MarkDownload - Markdown Web Clipper/Assets.xcassets/AppIcon.appiconset/favicon-16x16.png
  86. BIN ... Clipper/MarkDownload - Markdown Web Clipper/Assets.xcassets/AppIcon.appiconset/favicon-32x32.png
  87. BIN ...lipper/MarkDownload - Markdown Web Clipper/Assets.xcassets/AppIcon.appiconset/favicon-512x512.png
  88. BIN ... Clipper/MarkDownload - Markdown Web Clipper/Assets.xcassets/AppIcon.appiconset/icon1024x1024.png
  89. BIN ... Clipper/MarkDownload - Markdown Web Clipper/Assets.xcassets/AppIcon.appiconset/icon256x256-1.png
  90. BIN ...eb Clipper/MarkDownload - Markdown Web Clipper/Assets.xcassets/AppIcon.appiconset/icon256x256.png
  91. BIN ... Web Clipper/MarkDownload - Markdown Web Clipper/Assets.xcassets/AppIcon.appiconset/icon64x64.png
  92. +6 −0 ...Download - Markdown Web Clipper/MarkDownload - Markdown Web Clipper/Assets.xcassets/Contents.json
  93. +168 −0 ...arkDownload - Markdown Web Clipper/MarkDownload - Markdown Web Clipper/Base.lproj/Main.storyboard
  94. +32 −0 xcode/MarkDownload - Markdown Web Clipper/MarkDownload - Markdown Web Clipper/Info.plist
  95. +10 −0 ... Web Clipper/MarkDownload - Markdown Web Clipper/MarkDownload___Markdown_Web_Clipper.entitlements
  96. +51 −0 xcode/MarkDownload - Markdown Web Clipper/MarkDownload - Markdown Web Clipper/ViewController.swift
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: deathau
custom: ["https://www.paypal.me/deathau"]
18 changes: 18 additions & 0 deletions .github/workflows/addIssuesToProject.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Add issues to MarkDownload project

on:
issues:
types:
- opened

jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.4.0
with:
# You can target a repository in a different organization
# to the issue
project-url: https://github.com/users/deathau/projects/1
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
web-ext-artifacts/markdown-clipper-1.0.zip
web-ext-artifacts
xcode/MarkDownload - Markdown Web Clipper/MarkDownload - Markdown Web Clipper.xcodeproj/project.xcworkspace
xcode/MarkDownload - Markdown Web Clipper/MarkDownload - Markdown Web Clipper.xcodeproj/xcuserdata
.DS_Store
node_modules
136 changes: 136 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# Changelog
## 3.4.0
- Fixed extra spaces in titles which could cause issues (thanks @rickdoesdev !)
- 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 !)
- 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 !)
- Fixed an issue with some sites missing a proper title (thanks @WeHat !)
- Fixed an issue with bad base urls causing issues with links in certain circumstances (thanks @WeHat !)
- Fixed an issue with readability removing everything in certain circumstances (thanks @WeHat !)
- Send properly configured title to the Obsidian integration (thanks @nekton39 !)
- Updates to the README (thanks @2gn and @eugenesvk !)
## 3.3.0
- Remove hidden content before exporting (thanks @nhaouari !). This allows you to use a different extension (e.g. Adblock) to hide elements that would otherwise clutter up your export
- Fixes for Obsidian integration in Safari (thanks @aancw !)
- Keep a few more HTML tags that have no markdown equivalent (`u`, `ins`, `del`, `small`, `big`) (thanks @mnaoumov !)
- Add support for KaTeX formulas parsing (thanks @mnaoumov !)
- Fixed saving for options when imported from file (and show a little 'saved' indicator)
- Added a toggle for downloading images in the context menu and popup
- Added a link to the options in the popup
- Added some basic error handling to the popup
- Changes to how html inside code blocks is handled (thanks @mnaumov !)
- Treat codehilite without specified language as plaintext (thanks @mnaoumov !)
- Ensure sequential line breaks in <pre> are preserved in code blocks (thanks @mnaumov !)
- Update user guide link in README to point to GitHub
- Added keyboard shortcuts to copy selection / current tab to obsidian (user-definable in browsers that support that) (thanks @legolasdimir and @likeablob !)
- Select multiple tabs (hold crtl/cmd) then copy all tab urls as a markdown link list via keyboard shortcut or context menu (thanks @romanPrignon !)
- Allow users to include custom text such like `{date:YYYY-MM-DD}/`` in their Obsidian Folder Name setting (thanks @likeablob !)
- Fixed a small typo in the user guide (thanks @devon-research !)
- Fix for missing headings on sites like Substack (thanks @eactisgrosso !)
- Add support for websites using MathJax 3 (thanks @LeLocTai !)
## 3.2.1
- Bugfixes for the Obsidian integration (thanks @aancw !)
## 3.2.0
- Added a basic Obsidian integration using the [Obsidian Advanced URI](https://vinzent03.github.io/obsidian-advanced-uri/) plugin and clipboard (thanks @aancw !)
- Keep sub/sup tags so that superscript and subscript text is retained (thanks @mnaoumov !)
- Added a keyboard shortcut for copy selection as markdown (nothing by default, needs to be user-configured)
- Added a new context menu item to copy all tabs as a list of markdown links
- Updated dependencies

## 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 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`)
- 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)
- Added option to enable or disable the context menus
- Added some extra keyboard shortcuts. These can be customised, depending on your browser
- <kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>M</kbd> opens the popup (as it has in previous versions)
- <kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>D</kbd> downloads the current tab as markdown, bypassing the popup
- <kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>C</kbd> copies the current tab as markdown to the clipboard, bypassing the popup
- <kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>L</kbd> copies the current tabs URL as a markdown link to the clipboard
- Added support for template variables having different casing using `:` followed by the casing type. For example, for an article titled "Different Types of Casing":
- `{pageTitle:pascal}` — "DifferentTypesOfCasing"
- `{pageTitle:camel}` — "differentTypesOfCasing"
- `{pageTitle:kebab}` — "different-types-of-casing"
- `{pageTitle:snake` — "different_types_of_casing"
- Added support for rending italics in double underscores (`__`). This isn't valid MarkDown (will output as __bold__), but it's useful for people copying to Roam
- Support image download as base64 embedded urls, directly in the markdown file
- Added some extra variables related to the url beyond the existing `{baseURI}`:
- `{origin}` - The origin of the URL, that is its scheme, its domain and its port
- `{host}` - The domain (that is the _hostname_) followed by (if a port was specified) a `:` and the _port_ of the URL.
- `{hostname}` - The domain of the URL.
- `{port}` - The port number of the URL.
- `{protocol}` - The protocol scheme of the URL, including the final `':'`.
- `{pathname}` - An initial `'/'` followed by the path of the URL, not including the query string or fragment.
- `{search}` - The URL's parameter string; if any parameters are provided, this string includes all of them, beginning with the leading `?` character.

## 3.0.0
- Theme revamp
- Utilizing CodeMirror for the Markdown Editor
- Strip Disallowed characters on title and image filenames during text replacement
- Add "Download Type" option, to attempt to resolve conflicts with other Download extensions (and to help support Safari!)
- Add options for stripping images and links
- Fixes around downloading images and getting correct urls in the markdown
- Added meta keywords support for the text replace
- Added text replace support for meta tags in general
- Add option to disable turndown escaping
- Strip out 'red dot' special characters
- Added an option to specify a download path (within the downloads folder). Thanks to Nikita Lukianets!

## 2.4.1
- Add option for Obsidian-style image links (when downloading images with the markdown file)
- Downloaded images should download relative to the markdown file in the case where you specify a subfolder in your title template
- Front- and back-matter template will no longer put in extra lines on Opera
- Adjusted the way text is copied to the clipboard

## 2.4.0
- Fixed typo on options page (thanks Dean Cook)
- Added option to download images alongside the markdown file
- Also added the ability to add a prefix to the images you download, so you can, for example, save them in a subfolder
- If your browser has the option to always show a save as dialog enabled, you might get a dialog for every image. Sorry about that 😬
- Updated turndown to 7.0.1 and allowed iframes to be kept in the markdown
- Added a new `{pageTitle}` option for template replacement (there are many websites where the `{title}` and `{pageTitle}` actually differ)
- Added a context menu option to copy a tab URL as a markdown link, using the title configured in settings as the link title (i.e. `[<custom title>](<URL>)`)
- Added custom disallowed characters to strip from titles (set to `[]#^` by default for maximum compatibility with Obsidian)
- Added some focus styling so you can tell what is focused
- Auto-focus the download button (you can now `ctrl`+`shift`+`M`, Enter to quickly download a file)
- Template title (and image prefixes) now allow forward slashes (`/`) so that files get saved to a subfolder

## 2.3.1
- Added template toggle to Firefox's tab context menu

## 2.3.0
- Added contexy menus for copying markdown
- Added options to clip selected text
- Include front-matter/back-matter templates in popup
- Add title templating
- Added keyboard shortcut to show the popup
- Added option to always show Save As
- Added context menus to download all tabs as markdown

## 2.2.0
- Added extension options
- Turndown (markdown generation) options
- Front-matter/back-matter templates with replacement variables from page metadata (and date)

## 2.1.6
- Replace non-breaking spaces in filenames

## 2.1.5
- Fixed an issue with sites with invalid `<base>` tags

## 2.1.4
- Fixed issue with relative links [#1](https://github.com/deathau/markdownload/issues/1)

## 2.1.3
- Fist change, forked from [enrico-kaack/markdown-clipper](https://github.com/enrico-kaack/markdown-clipper)
- Added URL to markdown output ([#5](https://github.com/deathau/markdownload/issues/5))
23 changes: 23 additions & 0 deletions PRIVACY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Privacy Policy

This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone
using the MarkDownload browser extension (the Service).

tl;dr: We don't collect anything. Any information we clip from websites remains on your machine.

## 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.

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.

The settings of the extension get stored in the browser's local storage and likewise are never collected or transmitted by me.

## Changes to This Privacy Policy
I may update this Privacy Policy from time to time, for example if new features are developed which require data collection.
Thus, it might be a good idea to review this page periodically for any changes. Any changes are effective immediately, as they are
posted on this page. Editing this page constitutes a notification that the Privacy Policy has changed

## Contact Me
If you have any questions or suggestions about this Privacy Policy, do not hesitate to contact me.
88 changes: 80 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,89 @@
# markdown-clipper
# MarkDownload - Markdown Web Clipper

This is a Firefox and Google Chrome extension to clip websites and download them into a readable markdown file.
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/deathau/markdownload?style=for-the-badge&sort=semver)](https://github.com/deathau/markdownload/releases/latest)

It uses the following two libraries:
- [Readability.js](https://github.com/mozilla/readability) by Mozilla in version from commit [977be42d1fb33781401001318813ab9fe4568647](https://github.com/mozilla/readability/commit/977be42d1fb33781401001318813ab9fe4568647#diff-06d8d22df421dacde90a2268083424ab). This library is also used for the Firefox Reader View and it simplifies the page so that only the important parts are clipped. (Licensed under Apache License Version 2.0)
- [Turndown](https://github.com/domchristie/turndown) by Dom Christie in version 5.0.1 is used to convert the simplified HTML (from Readability.js) into markdown. (Licensed under MIT License)
This is an extension to clip websites and download them into a readable markdown file. Please keep in mind that it is not guaranteed to work on all websites.

To use this add-on, simply click the add-on icon while you are browsing the page you want to save offline. A popup will show the rendered markdown so you can make minor edits or copy the text, or you can click the download button to download an .md file.
Selecting text will allow you to download just the selected text

See the [Markdownload User Guide](https://github.com/deathau/markdownload/blob/master/user-guide.md#markdownload-user-guide) for more details on the functionality of this extension

# Installation
The plugin is available for [Firefox](https://addons.mozilla.org/de/firefox/addon/markdown-clipper/) and [Google Chrome](https://chrome.google.com/webstore/detail/markdown-clipper/cjedbglnccaioiolemnfhjncicchinao).
The extension is available for [Firefox](https://addons.mozilla.org/en-GB/firefox/addon/markdownload/), [Google Chrome](https://chrome.google.com/webstore/detail/markdownload-markdown-web/pcmpcfapbekmbjjkdalcgopdkipoggdi), [Microsoft Edge](https://microsoftedge.microsoft.com/addons/detail/hajanaajapkhaabfcofdjgjnlgkdkknm) and [Safari](https://apple.co/3tcU0pD).

[![](https://img.shields.io/chrome-web-store/v/pcmpcfapbekmbjjkdalcgopdkipoggdi.svg?logo=google-chrome&style=flat)](https://chrome.google.com/webstore/detail/markdownload-markdown-web/pcmpcfapbekmbjjkdalcgopdkipoggdi) [![](https://img.shields.io/chrome-web-store/rating/pcmpcfapbekmbjjkdalcgopdkipoggdi.svg?logo=google-chrome&style=flat)](https://chrome.google.com/webstore/detail/markdownload-markdown-web/pcmpcfapbekmbjjkdalcgopdkipoggdi) [![](https://img.shields.io/chrome-web-store/users/pcmpcfapbekmbjjkdalcgopdkipoggdi.svg?logo=google-chrome&style=flat)](https://chrome.google.com/webstore/detail/markdownload-markdown-web/pcmpcfapbekmbjjkdalcgopdkipoggdi)

[![](https://img.shields.io/amo/v/markdownload.svg?logo=firefox&style=flat)](https://addons.mozilla.org/en-US/firefox/addon/markdownload/) [![](https://img.shields.io/amo/rating/markdownload.svg?logo=firefox&style=flat)](https://addons.mozilla.org/en-US/firefox/addon/markdownload/) [![](https://img.shields.io/amo/users/markdownload.svg?logo=firefox&style=flat)](https://addons.mozilla.org/en-US/firefox/addon/markdownload/)

[![](https://img.shields.io/badge/dynamic/json?label=edge%20add-on&prefix=v&query=%24.version&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Fhajanaajapkhaabfcofdjgjnlgkdkknm&style=flat&logo=microsoft-edge)](https://microsoftedge.microsoft.com/addons/detail/hajanaajapkhaabfcofdjgjnlgkdkknm) [![](https://img.shields.io/badge/dynamic/json?label=rating&suffix=/5&query=%24.averageRating&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Fhajanaajapkhaabfcofdjgjnlgkdkknm&style=flat&logo=microsoft-edge)](https://microsoftedge.microsoft.com/addons/detail/hajanaajapkhaabfcofdjgjnlgkdkknm)

[![iTunes App Store](https://img.shields.io/itunes/v/1554029832?label=Safari&logo=safari&style=flat)](https://apple.co/3tcU0pD)

# Obsidian Integration

For integration with obsidian, you need to install and enable community plugins named "Advanced Obsidian URI". This plugin help us to bypass character limitation in URL. Because it's using clipboard as the source for creating new file.
More information about Advanced Obsidian URI plugin: https://vinzent03.github.io/obsidian-advanced-uri/

You need to do some configurations in order to use this integration.
<details>
<summary>Steps to follow</summary>

1. Left-Click on the extension
2. Click on the gear icon to open the configuration menu
3. Scroll down to "Obsidian integration" section and turn "enable obsidian integration" on.
4. Fill out the form below (Obsidian vault name and Obsidian folder name.)
5. Right-click on the extension and open the menu
6. In "MarkDownload - Markdown Web Clipper", select "Send Tab to Obsidian"

</details>



# External Libraries
It uses the following libraries:
- [Readability.js](https://github.com/mozilla/readability) by Mozilla version [0.5.0](https://github.com/mozilla/readability/releases/tag/0.5.0). This library is also used for the Firefox Reader View and it simplifies the page so that only the important parts are clipped. (Licensed under Apache License Version 2.0)
- [Turndown](https://github.com/mixmark-io/turndown) by Dom Christie in version [7.1.3](https://github.com/mixmark-io/turndown/releases/tag/v7.1.3) is used to convert the simplified HTML (from Readability.js) into markdown. (Licensed under MIT License)
- [Moment.js](https://momentjs.com) version 2.29.4 used to format dates in template variables

# Permissions
- Data on all sites: used to enable "Download All Tabs" functionality - no other data is captured or sent online
- Access tabs: used to access the website content when the icon in the browser bar is clicked.
- Manage Downloads: neccessary to be able to download the markdown file.
- Manage Downloads: necessary to be able to download the markdown file.
- Storage: used to save extension options
- Clipboard: used to copy Markdown to clipboard

---
The icon was created using [Favicon.io ](https://favicon.io)
The Common Mark icon courtesy of https://github.com/dcurtis/markdown-mark

## Pricing
This is an open-source extension I made *for fun*. Its intention is to be completely free.
It's free on Firefox, Edge and Chrome (and other Chromium browsers),
but unfortunately for Safari there is a yearly developer fee, so I've decided to
charge a small price for the Safari version to help cover that cost.
Alternately, you can become a GitHub Sponsor for as little as $2 per month and
you can request a key for the Safari version.
Also, even if you're using the free version and you absolutely *have* to
send me money because you like it that much, feel free to throw some coins
in my hat via the following:

[![GitHub Sponsors](https://img.shields.io/github/sponsors/deathau?style=social)](https://github.com/sponsors/deathau)
[![Paypal](https://img.shields.io/badge/paypal-deathau-yellow?style=social&logo=paypal)](https://paypal.me/deathau)

# Version History
## 3.4.0
- Fixed extra spaces in titles which could cause issues (thanks @rickdoesdev !)
- 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 !)
- 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 !)
- Fixed an issue with some sites missing a proper title (thanks @WeHat !)
- Fixed an issue with bad base urls causing issues with links in certain circumstances (thanks @WeHat !)
- Fixed an issue with readability removing everything in certain circumstances (thanks @WeHat !)
- Send properly configured title to the Obsidian integration (thanks @nekton39 !)
- Updates to the README (thanks @2gn and @eugenesvk !)

> Previous version history is recorded in [CHANGELOG.md](./CHANGELOG.md)
Loading