Replies: 5 comments 6 replies
-
@tavin https://github.com/oeyoews/neotw/blob/6ee7759d2a17b0582d7c26c7f1e85eeda14c1235/plugins/oeyoews/markdown/wrapper.js#L126 In order to make it easier, I directly modify the wrapper.js file |
Beta Was this translation helpful? Give feedback.
-
Hi @tavin I think that the present situation is that adding a Markdown-it plugin requires knowledge of JavaScript in TiddlyWiki. That is not ideal, and I'd welcome improvements in that area. In the meantime, if you have a requirement for a specific plugin do let us know. |
Beta Was this translation helpful? Give feedback.
-
This looks convenient, I can just call |
Beta Was this translation helpful? Give feedback.
-
The plug-in extension of codemirror has a module-type=codemirror field, which makes the extension look very convenient, and markdown should also be able to do it |
Beta Was this translation helpful? Give feedback.
-
codemirror seems to work only through widgets /*\
title: $:/plugins/tiddlywiki/codemirror/edit-codemirror.js
type: application/javascript
module-type: widget
Edit-codemirror widget
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
var editTextWidgetFactory = require("$:/core/modules/editor/factory.js").editTextWidgetFactory,
CodeMirrorEngine = require("$:/plugins/tiddlywiki/codemirror/engine.js").CodeMirrorEngine;
exports["edit-codemirror"] = editTextWidgetFactory(CodeMirrorEngine,CodeMirrorEngine);
})(); |
Beta Was this translation helpful? Give feedback.
-
The README for the markdown plugin says:
I guess this assumes general knowledge of how tiddlywiki works (links?).
Where do you place this code? Does it run in nodejs or the browser? What does the
require()
argument look like actually?Beta Was this translation helpful? Give feedback.
All reactions