Coder Social home page Coder Social logo

xigoi / xidoc Goto Github PK

View Code? Open in Web Editor NEW
42.0 42.0 0.0 8.03 MB

A consistent markup language

Home Page: http://xidoc.nim.town/

License: GNU General Public License v3.0

Nim 2.64% Shell 0.01% C 75.69% JavaScript 21.67%
consistency html kiss latex lisp markup nim ssg

xidoc's People

Contributors

celtic-coder avatar xigoi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xidoc's Issues

Command for lemmata

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 :)

can i ask u something ?

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

Ordered lists

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.

Table of Contents in "commands.xd"

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:

  • Introduction
  • Top-level commands
  • HTML commands
  • CSS commands
  • Math commands

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

A more convenient single bracket escape

;[ 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: Practical Markup Language (PML) and HastyScribe

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?

Practical Markup Language (PML)

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?

HastyScribe

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

Code-block not detecting languages

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.