Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for .tid files (TiddlyWiki5) (#1390)
* add support for .tid files (TiddlyWiki5) * add lexers/_mapping.py * markup.py: change versionadded of TiddlyWiki5Lexer to 2.7 * markup.py, TiddlyWiki5Lexer: use non-greedy matcher for table headers, footers, captions and classes * markup.py, TiddlyWiki5Lexer: make timestamps of type Number.Integer
- Loading branch information
1 parent
c191192
commit 7c46c91
Showing
3 changed files
with
233 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
caption: Formatting | ||
created: 20131205155959399 | ||
modified: 20200201075357846 | ||
tags: TiddlyWiki WikiText | ||
title: TiddlyWiki5 | ||
type: text/vnd.tiddlywiki | ||
|
||
\define pos() <div class="cell positive">+</div> | ||
\define neg() <div class="cell negative">-</div> | ||
|
||
\define say-hi-using-variables() | ||
Hi, I'm $(name)$ and I live in $(address)$. | ||
\end | ||
|
||
<style> | ||
/* compensating the cell padding */ | ||
.cell { margin:-1px -7px; padding:1px 7px; } | ||
.positive { background-color:#afa; } | ||
.negative { background-color:#faa; } | ||
</style> | ||
|
||
!Main Header | ||
|
||
Available character formatting includes: | ||
|
||
* <code>`backticks`</code> for `code` | ||
** Alternatively, <code>``double backticks allows `embedded` backticks``</code> | ||
* `''bold''` for ''bold text'' | ||
*`//italic//` for //italic text// ({{$:/core/images/italic}}) | ||
*# `__underscore__` for __underscored text__ | ||
|
||
Ordered list: | ||
|
||
# `^^superscript^^` for ^^superscripted^^ text ({{$:/core/images/superscript}}) | ||
# `,,subscript,,` for ,,subscripted,, text ({{$:/core/images/subscript}}) | ||
#* `~~strikethrough~~` for ~~strikethrough~~ text ({{$:/core/images/strikethrough}}) | ||
|
||
<span style="font-style: italic;">''bold'' `&</span> | ||
|
||
!!Links | ||
|
||
Internal link: [[Code Blocks in WikiText]] | ||
|
||
External link: [[TiddlyWiki Homepage|https://tiddlywiki.com]] | ||
|
||
Image via transclusion: {{$:/core/images/underline}} | ||
|
||
Just a link: ftp://ftp.halifax.rwth-aachen.de/ | ||
|
||
!!!Code | ||
|
||
```bash | ||
cd "$HOME/workspace" | ||
``` | ||
|
||
!!!Table | ||
|
||
|myclass anotherClass|k | ||
|This is a caption |c | ||
|Header|Header|h | ||
|''Cell1'' |<<neg>> | | ||
|//Cell2// |<<pos>> | | ||
|Footer|Footer|f | ||
|
||
!Block quote | ||
|
||
<<< | ||
Computers are like a bicycle for our minds | ||
<<< Steve Jobs | ||
|
||
; Term being defined | ||
: Definition of that term |