01219: Add markup for inline markup such as soft break, clear left, clear right, fractions

Summary: Add markup for inline markup such as soft break, clear left, clear right, fractions
Created: 2010-09-05 20:31
Status: Open
Category: Feature
From: simon
Assigned:
Priority: 4
Version: any
OS: n/a

Description: Current PmWiki has markup for
break clear=both ([[<<]])
and new line (\\).

The new line markup (\\) only works when placed at the end of the line.

This issue requests the following additions to PmWiki markup

  • add the markup [[\\]] to represent <br>, this has the advantage that it can be used within lines, eg in numbered and bulleted lists-}
    This is possible now, just use \\ at the end of the line.
Markup('[[\\]]', '[[<<]]', '/\\[\\[\\\\\\\\]\\]/', '<br />'); ## break without clear all
  • add the following markup
 Markup('[[<]]', '[[<<]]', '/\\[\\[&lt;\\]\\]/', '<br style="clear:left;"/>'); ## break with clear left
 Markup('[[>]]', '[[<<]]', '/\\[\\[&rt;\\]\\]/', '<br style="clear:right;" />'); ## break with clear right 
  • add the markup [/1 3/] to represent fractions, viz a shortcut for the markup [-'^1^'&frasl;'_3_'-] as 13 (cf ½ ¼ ¾) *
    Here are some tests/demos with CSS. --Petko November 02, 2013, at 07:34 AM
  • add the markup [#{$Name}#] to represent a reference superscript, viz a shortcut for the markup '^[[{$Name}|#]]^' as [1] *
* should be implemented with a CSS class to enable bespoke formatting

I believe these should be implemented as recipes. --Petko November 02, 2013, at 07:34 AM