Ticket #741 (closed enhancement: fixed)

Opened 10 months ago

Last modified 7 months ago

support <hr> syntax directly in wiki-formatted content

Reported by: EricShulman Owned by: JeremyRuston
Priority: trivial Milestone: 2.4.2
Component: core Version:
Severity: trivial Keywords:
Cc:

Description

Similar to TW's native support for the <br> syntax (which permits display of line breaks within line-mode content such as table cells and bullet items), native support for the <hr> syntax would allow horizontal rules to be included within line mode content, without having to resort to using <html><hr></html>.

To achieve this, the existing 'rule' formatter needs a very minor tweak. The current 'match' pattern for this formatter is:

^----+$\\n?

To recognize "<hr>" (and "<hr />"), change this to:

^----+$\\n?|<hr ?/?>\\n?

Note: this change has been successfully implemented on TiddlyTools?. See http://www.TiddlyTools.com/#CoreTweaks

Change History

Changed 7 months ago by JeremyRuston

  • milestone set to 2.4.2

Changed 7 months ago by MartinBudden

  • status changed from new to closed
  • resolution set to fixed

Fixed in changeset:7961

Note: See TracTickets for help on using tickets.