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

Array
(
    [post_max_size] => 64M
    [$_POST keys] => 
    [$_REQUEST keys] => n
    [$_SERVER] => Array
        (
            [CONTEXT_DOCUMENT_ROOT] => /home/pmwiki/public_html
            [CONTEXT_PREFIX] => 
            [DOCUMENT_ROOT] => /home/pmwiki/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTPS] => on
            [HTTP_ACCEPT] => */*
            [HTTP_ACCEPT_ENCODING] => gzip, br, zstd, deflate
            [HTTP_HOST] => www.pmwiki.org
            [HTTP_REFERER] => http://www.pmwiki.org/wiki/PITS/01219
            [HTTP_USER_AGENT] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
            [HTTP_X_HTTPS] => 1
            [PATH] => /bin:/usr/bin
            [PHP_INI_SCAN_DIR] => /opt/cpanel/ea-php70/root/etc:/opt/cpanel/ea-php70/root/etc/php.d:.
            [QUERY_STRING] => n=PITS%2f01219
            [REDIRECT_HTTPS] => on
            [REDIRECT_QUERY_STRING] => n=PITS%2f01219
            [REDIRECT_SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/01219
            [REDIRECT_SCRIPT_URL] => /wiki/PITS/01219
            [REDIRECT_SSL_TLS_SNI] => www.pmwiki.org
            [REDIRECT_STATUS] => 200
            [REDIRECT_UNIQUE_ID] => afLcIJ9ZiWrfKoawz2hNGgAAAJE
            [REDIRECT_URL] => /wiki/PITS/01219
            [REMOTE_ADDR] => 216.73.216.31
            [REMOTE_PORT] => 36658
            [REQUEST_METHOD] => GET
            [REQUEST_SCHEME] => https
            [REQUEST_URI] => /wiki/PITS/01219
            [SCRIPT_FILENAME] => /home/pmwiki/public_html/index.php
            [SCRIPT_NAME] => /index.php
            [SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/01219
            [SCRIPT_URL] => /wiki/PITS/01219
            [SERVER_ADDR] => 23.254.203.248
            [SERVER_ADMIN] => webmaster@pmwiki.org
            [SERVER_NAME] => www.pmwiki.org
            [SERVER_PORT] => 443
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [SSL_TLS_SNI] => www.pmwiki.org
            [TZ] => America/Los_Angeles
            [UNIQUE_ID] => afLcIJ9ZiWrfKoawz2hNGgAAAJE
            [PHP_SELF] => /index.php
            [REQUEST_TIME_FLOAT] => 1777523744.9582
            [REQUEST_TIME] => 1777523744
            [argv] => Array
                (
                    [0] => n=PITS%2f01219
                )

            [argc] => 1
        )

)