I finally got round to looking at javascript code enough to put
together browser based rendering of markdown and latex equations
(please see attached pic). This has raised a number of issues.
Firstly, this needs a jquery update. The current version does not
work. What do you think about using a more recent version of jquery?
What is the state of the jquery plugins - are they needed?
Secondly, this seems to be a break from the tree model currently used
in the notebook. I *think* the tree model attempts to create a tree
from the nodes by placing titles, subtitles etc in a hierarchy.
Title
- subtitle
- codenode
- codenode
- subtitle
-codenode
etc.
With markdown, unless you parse the output to extract the structure of
titles, subtitles, you get a simple list of nodes:
markdown
codenode
codenode
markdown
etc
In my opinion, this is simpler to manage and allows more expressive
text (links, lists, quotes, etc). So I would favour of this approach.
It could also allow us to add ctrl+shift+enter to render markdown,
which saves messing around with modal dialogs to specify the text
type.
James
Hi codenoders,
I finally got round to looking at javascript code enough to put
together browser based rendering of markdown and latex equations
(please see attached pic).
This has raised a number of issues.
Firstly, this needs a jquery update. The current version does not
work. What do you think about using a more recent version of jquery?
What is the state of the jquery plugins - are they needed?
Secondly, this seems to be a break from the tree model currently used
in the notebook. I *think* the tree model attempts to create a tree
from the nodes by placing titles, subtitles etc in a hierarchy.
Title
- subtitle
- codenode
- codenode
- subtitle
-codenode
etc.
With markdown, unless you parse the output to extract the structure of
titles, subtitles, you get a simple list of nodes:
markdown
codenode
codenode
markdown
etc
In my opinion, this is simpler to manage and allows more expressive
text (links, lists, quotes, etc). So I would favour of this approach.
It could also allow us to add ctrl+shift+enter to render markdown,
which saves messing around with modal dialogs to specify the text
type.
James
--
http://groups.google.com/group/codenode-devel?hl=en
http://codenode.org
I have it working pretty fully now. based on they jquery-1.4 branch:
http://github.com/jamescasbon/codenode/tree/markdown
If you want to try, you should check it out and run the command
'codenode-admin installmathjax'
(I didn't want to check MBs of fonts into the repo)
you can use
$$ ... $$
\[ ... \]
for block equations or \( ... \) for inline, where ... = latex syntax.
ctrl+enter will toggle the input type and evaluate.
James