TiddlyWiki.org

Ticket #67 (new defect)

Opened 2 years ago

Last modified 5 months ago

Erroneously detected missing links

Reported by: UdoBorkowski Assigned to: MartinBudden
Priority: minor Milestone: soon
Component: core Version:
Severity: low Keywords:
Cc:

Description

In the current implementation the Tiddler text is checked for WikiWords? and "pretty links" after every change (pressing "done" in the tiddler menu), without looking for any context (e.g. if a word is in a code block, or a comment etc). This makes it very fast to determine the links, but also somehow inexact. A more precise solution requires a more detailed analysis, taking care of the various formatters and marcos and whether text they contain is wikified or not. This is even complicated by the fact that new formatters may be added by plugins: it would be fine if text controlled by these formatter would create the correct "links".

Adding an optional "per formatter" linkifier function could be used to overcome this problem. See this Discussion for details.

Change History

28/06/06 23:03:34 changed by UdoBorkowski

  • summary changed from Don't recognize WikiWords as links when in code blocks or comments to Mentioned that URLs may also introduce WikiWord links.

It was also reported in this discussion ) that URLs like this

http:\\domain.com\SomeWord\index.html

make the WikiWord? (here "SomeWord?") appear in the list of orphaned Tiddlers.

So WikiWords? in URLs should also not be considered as links

10/07/06 14:39:58 changed by JeremyRuston

  • status changed from new to assigned.
  • summary changed from Mentioned that URLs may also introduce WikiWord links to Missing WikiWord links can wrongly be detected in URLs.
  • milestone set to 2.1.

11/07/06 16:33:04 changed by JeremyRuston

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in changeset:333

21/07/06 16:06:38 changed by JeremyRuston

  • status changed from closed to reopened.
  • resolution deleted.
  • summary changed from Missing WikiWord links can wrongly be detected in URLs to Erroneously detected missing links.

I've reopened the ticket and broadened the description because there are still several cases that need to be fixed:

  • Ignoring links inside monospaced blocks

21/07/06 19:38:39 changed by MartinBudden

  • owner changed from JeremyRuston to MartinBudden.
  • status changed from reopened to new.

25/07/06 20:41:06 changed by MartinBudden

  • milestone changed from 2.1 to 2.2.

18/11/06 16:46:30 changed by MartinBudden

  • milestone changed from 2.2 to 2.3.

12/10/07 16:48:56 changed by MartinBudden

  • milestone changed from 2.3 to soon.

12/02/08 18:26:39 changed by EricShulman

http://www.TiddlyTools.com/#CoreTweaks addresses some of the 'wikiwords embedded in non-wiki (aka, "quoted") content' issues:

Specifically, before invoking the tiddler.changed() function, the tweak 'filters' the tiddler content to prevent content contained in certain *non-wikified* blocks from being scanned for WikiWords?:

* comments

/%...%/

* code/pre (monospaced blocks)

...

* unformatted text blocks

"""...""" AND <nowiki>...</nowiki>

* HTML blocks

<html>...</html>

* Inline javascript blocks

<script>...</script>

This eliminates the vast majority (but not ALL) instances of unintended WikiWords? being treated as missing tiddlers.