105 Commits

Author SHA1 Message Date
Martin Puppe
2745bf7e62 Fix certain wikilinks
The titles of notes can contain characters that have a special meaning
in regular expressions. Therefore those characters have to be escaped
before the title is used in a regular expression. Failure to do so in
the code that replaces wikilinks in notes, can otherwise result in
broken links.
2022-02-04 15:45:22 +01:00
Maxime Vaillancourt
2009a591d6 Allow dismissing note previews on touch devices by tapping on them 2021-10-12 22:04:58 -04:00
Maxime Vaillancourt
34b0d6fc40
Merge pull request #85 from maximevaillancourt/dependabot/bundler/nokogiri-1.12.5
Bump nokogiri from 1.11.4 to 1.12.5
2021-10-03 15:46:50 -04:00
dependabot[bot]
06242e7e1c
Bump nokogiri from 1.11.4 to 1.12.5
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.11.4 to 1.12.5.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.11.4...v1.12.5)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-28 05:46:58 +00:00
Maxime Vaillancourt
8c9c1ef620
Merge pull request #84 from maximevaillancourt/fix-links-to-notes-in-footnotes
Fix links to notes in footnotes
2021-09-15 18:12:15 -04:00
Maxime Vaillancourt
60e3ece8ff Fix links to notes in footnotes 2021-09-15 18:07:47 -04:00
Maxime Vaillancourt
1fd0f25561
Update and rename anything-else.md to something-else.md 2021-08-24 00:09:14 +00:00
Maxime Vaillancourt
381fc9f6b7 Add issue templates 2021-08-24 00:07:33 +00:00
Maxime Vaillancourt
35ae90f29c
Merge pull request #75 from maximevaillancourt/add-highlight-syntax
Highlight content wrapped with ==
2021-08-23 19:42:22 -04:00
Maxime Vaillancourt
72f9e888c1 Highlight content wrapped with == 2021-08-23 19:39:11 -04:00
Maxime Vaillancourt
3c04ebc393
Remove Ko-Fi link in note (donate to a charity instead!) 2021-08-06 01:47:16 +00:00
Maxime Vaillancourt
771bf5f1fe
Remove Ko-Fi links (donate to a charity instead!) 2021-08-06 01:45:08 +00:00
Maxime Vaillancourt
6072ded326
Merge pull request #70 from maximevaillancourt/dependabot/bundler/addressable-2.8.0
Bump addressable from 2.7.0 to 2.8.0
2021-07-16 18:45:24 -04:00
dependabot[bot]
122abe1759
Bump addressable from 2.7.0 to 2.8.0
Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/sporkmonger/addressable/releases)
- [Changelog](https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sporkmonger/addressable/compare/addressable-2.7.0...addressable-2.8.0)

---
updated-dependencies:
- dependency-name: addressable
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-13 10:54:30 +00:00
Maxime Vaillancourt
77733c1118
Merge pull request #66 from maximevaillancourt/embed-tweets
Allow embedding tweets
2021-06-16 23:50:43 -04:00
Maxime Vaillancourt
97232001be Allow embedding tweets 2021-06-16 23:42:19 -04:00
Maxime Vaillancourt
ad94b736b1
Merge pull request #64 from manunamz/patch-2
Update bidirectional_links_generator.rb
2021-06-16 23:34:09 -04:00
manunamz
8b2dba86ab
Merge branch 'master' into patch-2 2021-06-14 15:27:53 -04:00
Maxime Vaillancourt
f4d4be2b60
Merge pull request #63 from manunamz/patch-1
gsub -> gsub!
2021-06-13 17:48:42 -04:00
manunamz
bf7e92f9d3
Update bidirectional_links_generator.rb
Make 'invalid_wiki_link' regex less greedy.
2021-06-11 20:55:28 -04:00
manunamz
8514601d06
gsub -> gsub!
In case you were exerting a coding style opinion, feel free to ignore this pull request.

The following are equivalent, as far as I understand, so some chars can be deleted 🙂:

`current_note.content = current_note.content.gsub()` == `current_note.content.gsub!()`
2021-06-11 20:51:41 -04:00
Maxime Vaillancourt
c421400ae9 Revert "Stop replacing dashes in link generator"
This reverts commit 8544fd4f36d4d46290b3090c68fb39df87393e00.
2021-05-31 08:13:32 -04:00
Maxime Vaillancourt
8544fd4f36 Stop replacing dashes in link generator 2021-05-31 07:58:55 -04:00
Maxime Vaillancourt
690f3bbd2a
Merge pull request #60 from meewgumi/patch-1
pre codeblock horizontal scroll
2021-05-31 11:36:02 +00:00
meewgumi
55ef676d7d
pre codeblock horizontal scroll
This allows divs containing preformatted codeblocks to scroll horizontally. For an example of the non-scrolling current behavior, look at the shell script on [this note page](https://digital-garden-jekyll-template.netlify.app/your-first-note) with browser <1100px. The div containing a preformatted block is not resizing with the grid, which is preventing the backlinks box from being visible. This is also a problem on mobile devices, since horizontal scrolling of the body is not allowed.

This fix, `display: grid`, allows the div.highlight element to resize along with the grid container, fixing both the responsive backlink box issue and horizontal scrolling of the codeblock for browser widths <600px.
2021-05-30 05:10:24 +00:00
Maxime Vaillancourt
a426b66f5a
Merge pull request #59 from maximevaillancourt/dependabot/bundler/nokogiri-1.11.4
Bump nokogiri from 1.11.1 to 1.11.4
2021-05-21 21:05:09 +00:00
dependabot[bot]
8a109bf05e
Bump nokogiri from 1.11.1 to 1.11.4
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.11.1 to 1.11.4.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.11.1...v1.11.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-20 23:54:46 +00:00
Maxime Vaillancourt
fa209ea120
Merge pull request #57 from maximevaillancourt/dependabot/bundler/rexml-3.2.5
Bump rexml from 3.2.4 to 3.2.5
2021-05-01 00:46:33 +00:00
dependabot[bot]
a2d2899ad5
Bump rexml from 3.2.4 to 3.2.5
Bumps [rexml](https://github.com/ruby/rexml) from 3.2.4 to 3.2.5.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.2.4...v3.2.5)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-30 20:38:43 +00:00
Maxime Vaillancourt
e6e2ea2932 Remove unnecessary call 2021-04-03 17:49:30 -04:00
Maxime Vaillancourt
bcfe2d2de5 Update kramdown 2021-03-29 19:05:30 -04:00
Maxime Vaillancourt
f75dff52f5
Merge pull request #55 from maximevaillancourt/remove-anchor-duplication
Remove duplication in bidirectional links generator
2021-03-15 00:40:11 +00:00
Maxime Vaillancourt
c1ba4ec61f Remove duplication in bidirectional links generator 2021-03-14 20:37:47 -04:00
Maxime Vaillancourt
264ba2bda1
Merge pull request #54 from maximevaillancourt/skip-non-pages
Skip non-pages for external links detection
2021-03-15 00:37:11 +00:00
Maxime Vaillancourt
9487676bd8 Skip non-pages for external links detection 2021-03-14 20:34:44 -04:00
Maxime Vaillancourt
fb1ec4a2dc
Merge pull request #53 from maggiedelano/fix-footnotes
Treat footnotes as internal links
2021-03-15 00:30:14 +00:00
Maggie Delano
561462d17f Add example of using footnote to your-first-note.md. 2021-03-14 11:57:59 -04:00
Maggie Delano
8e6ef533c6 Fix footnote and reversefootnote links from being treated as external links 2021-03-14 00:05:17 -05:00
Maxime Vaillancourt
6ab7bae8a1
Merge pull request #52 from maximevaillancourt/option-open-external-links-in-new-tab
Add option to open external links in new tab
2021-03-02 20:26:41 -05:00
Maxime Vaillancourt
606ed76189 Add option to open external links in new tab 2021-03-02 20:25:28 -05:00
Maxime Vaillancourt
ac70b2f668
Merge pull request #46 from Am3ra/patch-1
Update generator to include baseurl.
2021-02-08 17:28:52 -05:00
Alan M
9cf05a68e0
Apply suggestions from code review
Add spaces around `site.baseurl`, and add empty string to config

Co-authored-by: Maxime Vaillancourt <mv@maximevaillancourt.com>
2021-02-08 15:32:45 -06:00
am3ra
09ba4def4f fix baseurl to correct value 2021-02-05 01:31:34 -06:00
am3ra
b84c65fda8 add baseurl to more internal links in layouts 2021-02-05 01:23:41 -06:00
Alan M
d22fcbef35
Update generator to include baseurl.
One of the breaking errors that I fixed in my install of this great repo was that all links generated by the ruby script didn't take into account the baseurl specified in the config file.

This ruby file corrects the error, although in the paths it might add one '/' too many. This hasn't caused me any issues, but should be considered.
2021-01-31 01:38:24 -06:00
Maxime Vaillancourt
9232ce3ded Add config to toggle html extension in links 2021-01-26 08:32:07 -05:00
Maxime Vaillancourt
5d190b6a97 Add section about code syntax highlighting 2021-01-25 22:14:05 -05:00
Maxime Vaillancourt
73ba1d475a
Merge pull request #44 from stefanlesser/fix-modified
Skip unnecessary rewrites of notes in `empty_front_matter_note_injector.rb`
2021-01-16 14:39:08 -05:00
Stefan Lesser
9c6b55cfff Fixed issue with plugin that touched all original notes and updated their modified date unnecessarily. 2021-01-16 18:23:08 +00:00
Maxime Vaillancourt
af673fd9e7 Add support for Ruby 3.0.0 2020-12-30 13:44:53 -05:00