WyPyPlus

Header 1

Header 2

Header 3

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum

WyPyPlus can generate headline anchor links. If you want to turn on this feature, replace the headline function:


hl=lambda m,n:'<h%d>%s</h%d>'%(n,m.group(1),n)
with

hl=lambda m,n:'<h%d id=%s>%s<a href=#%s> ΒΆ</a></h%d>'%(n,hs(m),m.group(1),hs(m),n);

Bold

This is a Bold text!

Links

YouTube Video:

List everything in this wiki:@All

Wiki link: DemoPage

Raw URL link: http://www.google.com

Markdown link: google homepage

Reference to a date or a month: Jan1 Jan2021

Template

A template is a page with a special name: Tpl[three characters]. A page starts with the same three characters will use the template.

For example, when you create TplJan, Any page starts with "Jan" such as Jan21 will include the template.

Images

External image:

test image

Local image:

local image

Quote


# Python Code
def hello():
  print("hello world")

list

Table

WyPyPlus supports media wiki style table.
OrangeApple
BreadPie
ButterIce cream

OrangeApplemore
BreadPiemore
ButterIce creamand more

Page Break


The RPN Calculator

The built-in RPN calculator supports +, -, *, /, ^ and common functions such as log, sqrt, abs, sin, cos, and tan.

ExampleResults
3 2 ^ 4 2 ^ + sqrt5.0
1000 10 log0.333333333333
e 1000 log6.90775738428
3.1415926 2 / sin1.0
-10 fabs10.0
Print the entire stack on error[2.0, 3.0, 'err']

Use RPN in a table

You can create a simple spreadsheet by embedding RPN expressions in a table. A RPN expression in the table must start with '='. You can reference other cells on the same row by $X notation where X is the column index starting from 0.
AB`A^2 + B^2``sqrt(A^2 + B^2)`
.5416.254.03112887415
68100.010.0
912225.015.0

You can easily add more functions to the built-in RPN by modify this line:


unary=['sqrt','abs','sin','cos','tan'];norm={'+':op.add,'-':op.sub,'*':op.mul,'/':op.div,'^':pow};rev={'log':math.log}

Math Notation with Ascii Math

` sum_(i=1)^n i^3=((n(n+1))/2)^2 `

Synatx Highlight with highlight.js (Optional)

Insert the following line to the <head> section at the end of wypyplus.py to support synatx highligh for over 150 languages.


<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.1.0/styles/default.min.css">\
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.1.0/highlight.min.js"></script><script>hljs.highlightAll();</script>