( Apologies if this is better suited to TiddlyWikiDev... ) On Feb 15, 3:38 pm, techwriter_mjs <[email protected]> wrote: > I'm assuming that there's code somewhere I can edit that knows, for > example, that an exclamation mark, "!", denotes a h1 heading, so I > figure that's where I'd add a new wiki markup tag. But perhaps > there's an easier way to go about this?
Kosmaton already covered how to use a custom style, so I won't go into that. Adding a new markup tag isn't anywhere near as trivial... but is certainly possible. I know there is a MediaWiki formatter plugin, but I beleive that pretty much replaces the standard formatter for any tiddlers tagged as mediawiki style markup. Is anyone following this aware of any plugins that add markup syntax on top of the standard tiddlywiki markup? I'd imagine it would have to convert the marked-up content into a span or div tag, with a fixed class, to be of any value in applying styles to it... or a normal html element with custom class applied, say for easy styling of custom lists. http://dev.tiddlywiki.org/browser/Tags/core/REL-2.6.2_Final/js/Formatter.js Beyond adding a new element to the config.formatters array (via plugin, I imagine) as seen in the link above, what else would it take to add custom markup (not replace it wholesale a la the mediawiki plugin)? (...about an hour later...) Looks like maybe... all you would need to do is something like --from main() in main.js-- formatter = new Formatter(config.formatters); after adding the appropriate elements to the config.formatters array. I'd like to give that a try, if I have the time... -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

