1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-01 00:10:45 +00:00
TiddlyWiki5/plugins/tiddlywiki/railroad/doc/readme.tid

21 lines
1.2 KiB
Plaintext
Raw Normal View History

2015-01-03 20:02:27 +00:00
created: 20150102163222184
2015-01-19 22:21:22 +00:00
modified: 20150119220023000
2015-01-03 20:02:27 +00:00
title: $:/plugins/tiddlywiki/railroad/readme
2015-01-19 22:21:22 +00:00
This plugin provides a `<$railroad>` widget for generating railroad diagrams as SVG images.
2015-01-03 20:02:27 +00:00
2015-01-19 22:21:22 +00:00
Alternatively, the [[diagram notation|$:/plugins/tiddlywiki/railroad/syntax]] can be stored in a dedicated tiddler with its `type` field set to `text/vnd.tiddlywiki.railroad`, and that tiddler can simply be transcluded to wherever it is needed.
2015-01-03 20:02:27 +00:00
2015-01-19 22:21:22 +00:00
The plugin is based on [[a library by Tab Atkins|https://github.com/tabatkins/railroad-diagrams]], and has been extended to make it more flexible, including allowing components of a diagram to function as links or be transcluded from other tiddlers.
2015-01-03 20:02:27 +00:00
2015-01-19 22:21:22 +00:00
The content of the `<$railroad>` widget is ignored.
2015-01-03 20:02:27 +00:00
2015-01-19 22:21:22 +00:00
|!Attribute |!Description |!Default |
|text |Text in a special notation that defines the diagram's layout |-- |
|arrow |If set to `no`, repeat paths do not have an arrow on them |`yes` |
|start |Style of the startpoint: `single`, `double`, `none` |`single` |
|end |Style of the endpoint: `single`, `double`, `none` |`single` |
|debug |If set to `yes`, the diagram displays its parse tree |`no` |
2015-01-19 22:21:22 +00:00
These options can also be specified via pragmas in the diagram notation.