xigoi / xidoc Goto Github PK
View Code? Open in Web Editor NEWA consistent markup language
Home Page: http://xidoc.nim.town/
License: GNU General Public License v3.0
A consistent markup language
Home Page: http://xidoc.nim.town/
License: GNU General Public License v3.0
There are commands for easily displaying theorems, proofs, and definitions.
However, when writing lecture notes I find myself often writing some simple lemmata. I feel like it would be natural to have a command similar to [dfn ] for lemmata :)
it must be so fking dumb but can i have ur discord if u don't have one, that fine, i just wanna ask u something on private message
This is an idea for an enhancement.
As far as I know there is no ordered list feature. However sometimes I find myself needing to write cookbook-like set of instructions that ought to be followed in a specific order. Here it would make sense to have it.
Hi Adam (@xigoi),
The Commands reference document is quite long. Might it be possible to include a Table of Contents (based on the "h2" headings), like the following:
This will give the reader an overview of the content before they get caught up in the technical details. The document is well-written and comprehensive. Therefore, I believe, that a Table of Contents would make it easier to approach for a new user.
Kind Regards,
Liam
Also, how to do a bold italic text?
;[
or /[
or \[
or [[
;]
or /]
or \]
or ]]
(the ;
without a space afterwards is a rare typing occurrence and is the most convenient due to the home row position of ;)
... instead of the current 3-char implementation [(]
Would those break anything fundamental in parsing?
Suggestion: Add a GitHub link to the website http://xidoc.nim.town.
Hi Adam (@xigoi),
When you have the opportunity, perhaps you could consider the following GitHub repos for possible ideas that could be included in XiDoc?
I'm guessing that one of the influences on your markup syntax is from Arturo, where it uses square brackets to delimit blocks.
Interestingly, PML is similar, as seen on the home page. The rationale behind the markup language is explained in the FAQ and the User Manual gives a quick overview of the language.
I have used PML in the past and when I came across XiDoc, I was struck by the similarities. Perhaps there might be some ideas that you might be able to glean and add to your own markup?
Like Aturo and XiDoc, HastyScribe is written in Nim. It takes Markdown (with some modifications) and creates a standalone self-contained HTML output. One of the things you might want to look at is how HastyScribe embeds all images in the HTML output. The Introduction to HastyScribe again might give you some ideas.
I am only beginning to look at XiDoc and I trust that these suggestions will help either generate some ideas or else point you towards some code that you can incorporate into your own markup.
Kind Regards,
Liam
Hi,
I noticed the following issue when using code-block
:
I have the following piece of code that I'd like to display in python formatting:
[code-block python;
[raw
X = np.arange(-10, 10, 1.5)
Y = np.arange(-10, 10, 1.5)
X, Y = np.meshgrid(X, Y)
]
]
However, when I try to compile this in xidoc it gives me:
Unknown language for syntax highlighting: python
It used to work fine. But it broke after I reinstalled xidoc with the command
nimble install xidoc
I might have messed something up during the reinstall, my understanding of nimble is very limited. Also it works fine when I remove the ?language
specifier.
Edit:
The same problem is also with the example from the webpage:
[code-block javascript; [raw
const factorial = (n) => {
let result = 1n;
for (let i = 1; i <= n; i++) {
result *= BigInt(i);
}
return result;
}
]]
also fails so it's not just python-highlighting issue.
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.