1. 01 Aug, 2019 1 commit
    • Deimos's avatar
      Markdown: require double tildes for strikethrough · 50d45249
      Deimos authored
      Previously, either double or single tildes would work for strikethrough.
      However, this had some strange edge cases, such as attempting to
      strikethrough some words that contain a group reference. Since Tildes
      uses single tildes for other purposes, it should be much less ambiguous
      overall to just force double tildes for strikethrough like this.
      This will affect a small number of past posts, in both good and bad
      ways (getting rid of some strikethrough, but fixing some accidental
  2. 23 Jun, 2019 1 commit
    • Deimos's avatar
      Apply isort to make import styles consistent · 31ab15fe
      Deimos authored
      This adds settings into pyproject.toml for the isort tool to match up
      with the styles I've generally been using, and then applies it to the
      whole project (by running "isort -rc").
      Most of these changes are very minor, but it's good to fix the few
      inconsistencies that were around.
  3. 07 Dec, 2018 1 commit
    • Deimos's avatar
      Replace bleach.linkify with cmark-gfm autolink · f1d2e0ae
      Deimos authored
      Yet another issue with Bleach 3.0's linkification: when used via the
      filter as part of sanitization (which is necessary right now due to
      *another* issue where it escapes valid HTML tags), it doesn't properly
      linkify urls that contain an ampersand.
      As a (temporary?) workaround, this stops using Bleach's linkification
      entirely and switches to cmark-gfm's "autolink" extension. These aren't
      perfectly equivalent, and the switch results in two other issues that I
      consider more minor than links including ampersands not working:
      - autolink will initially create links for ftp:// urls and email
        addresses. The final sanitization will remove these links due to the
        protocol whitelist, but it will leave behind a bare <a> tag. So the
        text will *appear* linked but not actually link to anything. If I
        decide to stick with autolink, it should be pretty straightforward to
        fix this by stripping all bare <a> tags from the final HTML.
      - autolink doesn't create links for bare domains. For example, writing
        "example.com" won't result in a link, it's necessary to write
        "www.example.com" or include a protocol like "http://example.com".
  4. 18 Oct, 2018 2 commits
    • Deimos's avatar
      Update cmark-gfm to 0.28.3.gfm.19 · 29f7369d
      Deimos authored
      Of course right after I did that last update, they released two more new
      versions of cmark-gfm, so here we go again.
      The .18 update defaults to "safe" mode, but I want to disable that and
      leave sanitization up to Bleach, so this required changing the options.
    • Deimos's avatar
      Update cmark-gfm to 0.28.3.gfm.17 · dd69c32c
      Deimos authored
      Required a couple of minor code changes as well, since they did some
      minor renaming of a few things.
  5. 13 Aug, 2018 1 commit
    • Deimos's avatar
      Apply Black code formatter · 09cf3c47
      Deimos authored
      This commit contains only changes that were made automatically by Black
      (except for some minor fixes to string un-wrapping and two
      format-disabling blocks in the user and group schemas). Some manual
      cleanup/adjustments will probably need to be made in a follow-up commit,
      but this one contains the result of running Black on the codebase
      without significant further manual tweaking.
  6. 10 Aug, 2018 1 commit