jem / jemdoc Goto Github PK
View Code? Open in Web Editor NEWLight text markup for creating websites
Home Page: http://jemdoc.jaboc.net/
Light text markup for creating websites
Home Page: http://jemdoc.jaboc.net/
jemdoc is a light text-based markup language designed for creating websites. It takes a text file written with jemdoc markup, an optional configuration file and an optional menu file, and makes static websites that look something like http://jemdoc.jaboc.net/. It was written by me, Jacob Mattingley, in 2007, and definitely isn't the type of code I would put on my CV. Lots of people use jemdoc, especially in academia. Much more info at http://jemdoc.jaboc.net/.
~~~
{}{c++}
// <<
~~~
results in: // <<
~~~
{}{}
<<
~~~
as expected, results in: <<
~~~
{}{}
// <<
~~~
as expected, results in: // <<
I recently noticed that the project website http://jemdoc.jaboc.net/ goes invalid. The webpage is now linking to some scam advertisement.
I find that there is only a 2-level directory on the left sidebar.
Can I use multi-level, such as a 3-level directory?
In another words, now the left sidebar looks like:
HEAD 1 level 1
Head 1.1 level 2
Head 1.2 level 2
HEAD 2 level 1
Head 2.1 level 2
...
What I want is:
HEAD 1 level 1
Head 1.1 level 2
head 1.1.1 level 3
head 1.1.2 level 3
Head 1.2 level 2
...
Thanks in advance.
Thanks for writing this great tool. Here are some minor issues I encountered when I tried to run a example.
It will great to include a download link for example.jemdoc
without menu setup. So new beginner can quickly test it more easily by just typing jemdoc example.jemdoc
It will be better to have a python 3 revision since python 2 is outdated.
From a user:
When the script generates latex equations, the default folder is eqs/ in the directory where the script is run rather than the directory where the html file is outputted. This can be easily changed by overriding the default folder. But then whenever I have to change the folder where I would like to put all my html files in, I have to change the source code as well. So I think that placing the equations in a directory where the html files are generated would be helpful.
Let's say we want to jemdoc the file, bug.jemdoc, which contains an instance of includeraw.
There is no whitespace / newline after the #includeraw{patent.html}. When jemdocing this file, an error is raised saying that there is not patent.html file. A quick fix can be found in PR here
bug.jemdoc file
# jemdoc: {bug.html}
= Bug reproduce in doincludes \n
== Patent
#includeraw{patent.html}
No newline/whitespace at the end of file.
patent.html
<ol reversed class="biblist">
<li ><p>
J. P. Wilkinson,“
Nonlinear resonant circuit devices,”
U.S.
Patent 3 624 125,
July,
16,
1990.
</li>
</ol>
I've made it so that if you start a link with \/, it opens it in a new tab. I've done this by adding the lines
if link[:2] == '\\/':
link = link[2:]
newtab = True
else:
newtab = False
and then the lines
if not newtab:
b = b[:m.start()] + r'<a href=\"%s\">%s<\/a>' % (link, linkname) + b[m.end():]
else:
b = b[:m.start()] + r'<a rel=\"noopener noreferrer\" target=\"_blank\" href=\"%s\">%s<\/a>' % (link, linkname) + b[m.end():]
to the replacelinks
function which seems to work well.
What do you think about adding this to master? What would be a good way to signify new tab?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.