Branch: refs/heads/master
Home:
https://github.com/dreamwidth/dw-free Commit: fe262bfb955023295c9a70fea70a77f82ae3d042
https://github.com/dreamwidth/dw-free/commit/fe262bfb955023295c9a70fea70a77f82ae3d042 Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2019-12-07 (Sat, 07 Dec 2019)
Changed paths:
M cgi-bin/LJ/CleanHTML.pm
M cgi-bin/LJ/Entry.pm
Log Message:
-----------
[#2601] Better better Markdown, maybe.
This fixes some Markdown problems, and doubles down on moving formatting
concerns into the HTML cleaner.
- Switch MD processing back to document-at-once mode, before we fire up the
HTML parser. It's looking we can't expect an HTML tokenizer to reliably give
us a valid fragment of Markdown, and the complexity of the Markdown language
makes token-at-a-time processing a dicey proposition even if the token
splitting was reliable.
- Move old-style Markdown detection into LJ::CleanHTML::clean_entry, because
lots of things rely on that detection but either don't create proper LJ::Entry
objects or call something other than event_html on them. Theoretically this
enables old-style journal entry `!markdown` flags in places where they weren't
allowed previously (faq items, etc.), but that seems fairly harmless.
- Tighten up list of HTML elements where
usernames shouldn't be converted.
- Explicit `editor` always beats detected formatting. This is more interesting
in the future.
Commit: ec574dd29f26e1f20bc00bd0622260dfc7295b0a
https://github.com/dreamwidth/dw-free/commit/ec574dd29f26e1f20bc00bd0622260dfc7295b0a Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2019-12-07 (Sat, 07 Dec 2019)
Changed paths:
M cgi-bin/DW/External/User.pm
M cgi-bin/LJ/User/Display.pm
Log Message:
-----------
User tag builders: Enable non-linked user tags
This is so we can avoid illegal markup in cases where a user tag is inside
another link, but still style it as a user tag.
Commit: b43e42a47a38a27cd97b74316ea8c242d06b8f40
https://github.com/dreamwidth/dw-free/commit/b43e42a47a38a27cd97b74316ea8c242d06b8f40 Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2019-12-07 (Sat, 07 Dec 2019)
Changed paths:
M cgi-bin/LJ/CleanHTML.pm
Log Message:
-----------
HTML cleaner: use non-linked user tags when inside links
Commit: 7c6957026abd5e57d74bb6fe3e182f795c900b89
https://github.com/dreamwidth/dw-free/commit/7c6957026abd5e57d74bb6fe3e182f795c900b89 Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2019-12-07 (Sat, 07 Dec 2019)
Changed paths:
M t/cleaner-markdown.t
Log Message:
-----------
Tests: HTML-in-md behaves more regularly, and we de-link users inside links
Commit: a0fe23e8816b4bbd4c77544dd69852aa7904caa7
https://github.com/dreamwidth/dw-free/commit/a0fe23e8816b4bbd4c77544dd69852aa7904caa7 Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2019-12-07 (Sat, 07 Dec 2019)
Changed paths:
M t/cleaner-markdown.t
Log Message:
-----------
Tests: More markdown/html
mention tests
Commit: 5965f76f2a3f44bef0dbd7d5cb91676eccc2a376
https://github.com/dreamwidth/dw-free/commit/5965f76f2a3f44bef0dbd7d5cb91676eccc2a376 Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2019-12-07 (Sat, 07 Dec 2019)
Changed paths:
M cgi-bin/LJ/S2.pm
Log Message:
-----------
S2: Make `Entry_from_entryobj` use `event_html` instead of `event_raw`
De-duplication of some clean_event logic.
Commit: 591b3668775d24f0a5b87b36ef67a01b81d92351
https://github.com/dreamwidth/dw-free/commit/591b3668775d24f0a5b87b36ef67a01b81d92351 Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2019-12-07 (Sat, 07 Dec 2019)
Changed paths:
M cgi-bin/DW/Controller/RPC/CutExpander.pm
Log Message:
-----------
CutExpander: Use `entry_html` instead of `entry_raw`
De-duplication of some clean_event logic.
Commit: e279b09732fe087c72ce94ab76a7b16bff1e9f2c
https://github.com/dreamwidth/dw-free/commit/e279b09732fe087c72ce94ab76a7b16bff1e9f2c Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2019-12-07 (Sat, 07 Dec 2019)
Changed paths:
M cgi-bin/LJ/Feed.pm
Log Message:
-----------
Feeds: pass entry's editor prop through to cleaner
Commit: 5d2cceb29e08ccd701f4b76f4b5349823095eb6a
https://github.com/dreamwidth/dw-free/commit/5d2cceb29e08ccd701f4b76f4b5349823095eb6a Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2019-12-07 (Sat, 07 Dec 2019)
Changed paths:
M cgi-bin/LJ/Sendmail.pm
Log Message:
-----------
Sendmail: set editor opt to `markdown` to replace removed function
Commit: d97a447ecf28a81638c3104eab07ba5a5cdddb79
https://github.com/dreamwidth/dw-free/commit/d97a447ecf28a81638c3104eab07ba5a5cdddb79 Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2019-12-07 (Sat, 07 Dec 2019)
Changed paths:
M cgi-bin/DW/Controller/Entry.pm
Log Message:
-----------
New entry page: In preview handler, add TODO to preserve editor prop
Eventually the form will supply this.
Commit: a5abbc0bb8d491fd8bba2f9224416f5caa6e0fc6
https://github.com/dreamwidth/dw-free/commit/a5abbc0bb8d491fd8bba2f9224416f5caa6e0fc6 Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2019-12-07 (Sat, 07 Dec 2019)
Changed paths:
M cgi-bin/DW/Entry/Moderated.pm
Log Message:
-----------
Moderation queue: Pass along entry's editor prop
Commit: 5ce1e2d9ae7390d0df6dc448097609271b4e9949
https://github.com/dreamwidth/dw-free/commit/5ce1e2d9ae7390d0df6dc448097609271b4e9949 Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2019-12-07 (Sat, 07 Dec 2019)
Changed paths:
M cgi-bin/LJ/Protocol.pm
Log Message:
-----------
Protocol: Add some placeholders for checking formatting
I doubt the old protocol will be updated to support the editor prop? And at any
rate, it looks like it's only using the cleaner for error-checking. But here's
some placeholders.
Compare:
https://github.com/dreamwidth/dw-free/compare/74d4f970894b...5ce1e2d9ae73