nota-lang / nota Goto Github PK
View Code? Open in Web Editor NEWA document language for the browser
Home Page: https://nota-lang.org
License: MIT License
A document language for the browser
Home Page: https://nota-lang.org
License: MIT License
Hey, This is a really amazing project!
I was going through the paper and the examples, and I feel that providing a documentation for the components along with examples can be really helpful for someone new to this. I checked through the source files, the readme and other repos and branches, and couldn't find any documentation.
In case you would be fine with it, I'd like to help in documenting the components and their examples.
Also If this is a framework which you would be making available for others to use, can you add an open-source license to this?
Thanks :)
@Ref
and @TableOfContents
don't flicker on page load.esbuild-utils
(a la estrella) so it generates bindings without a separate command, and also works in watch modenoSandbox
when running inside of a containerhttps://willcrichton.net/nota/#def-sec-funcalls
Result: A white circle punches out part of the first line of the tooltip. At my browser window width, it punches out part of the word "the":
This happens in Chrome Dev, Firefox Beta, and Safari (all tested on macOS)
If I right-click the circle and select "Inspect Element", it is identified as "div.arrow".
If I edit the Rust examples near https://willcrichton.net/nota/#def-sec-places so that I get a compiler error, the compiler error fades-in in a janky way, like the background is too transparent during the fade-in.
This issue happens in all browsers I tried (Firefox Beta, Chrome Dev, Safari) (all on macOS) although the timing is slightly different in each browser.
(@code{..})
or @${|#foo|}
.What is the point of Nota compared to plain, standard, HTML ? Even more when it's completely replicating the HTML anchors and structure ?
I don't know if the goal is to be a bit higher level than markdown (than can be edited and read perfectly out of the browser) and like, but I find it too close to HTML, so that it's not possible to read it out of the browser (and even worse: without JS).
The good point I see is being able to specify variable, a bit like HTML's <cite>
tag and perform simple computations (which aren't computed without JS).
"The principle question" should be "The principal question"
"as oppposed to a static image" should be "As opposed to a static image"
"To denote a conflict,we reuse" is missing space after comma
" π1 and π2 do not conflict" has an extra space before it
"Javascript" should be "JavaScript"
In https://willcrichton.net/nota/#def-footnote-5 :
In https://willcrichton.net/nota/#def-astrauskas2020programmers :
Peter M{\"u}ller
should be Peter Müller
https://willcrichton.net/nota/#def-sec-funcalls
However, our goal is to avoid using the definition of f (i.e. a whole-program analysis) for the reasons described in Section 1.
Clicking "section 1" scrolls to section 1 of the outer paper, but should scroll to section 1 of the inner paper
If I open a new Safari tab and paste https://willcrichton.net/nota/#def-sec-places
, the paper does not scroll to the section. It works in Firefox Beta and Chrome Dev. Clicking a link within the paper does work, even in Safari. (All tested on macOS)
Navigation:
Viewing:
Editing:
@Ref
|{
should autocomplete }|
and not }
@a[href="..."]{...}
Errors:
Pipeline:
server.ts
)Stumbled upon Nota and immediately noticed an issue (that, unfortunately, many websites have). I'll attach a screenshot that shows a part of what https://willcrichton.net/nota/ looks like for me.
As for my setup: When coding (among other things), I prefer to view documentation in my browser on the left side screen, which has a resolution of 1024x1280.
Besides not beeing able to view the whole text without scrolling horizontally, in this part the text left is cut off - so couldn't scroll left to see it even if I wanted.
I'm unable to compile any nota document containing highlighted code. (It works fine in the nota edit
mode, but nota build
fails.
Here's my nota document:
%%%
import {rust} from "@codemirror/lang-rust"
%%%
@Title: Test
```rust
fn f() {
println!("hello");
}
```
Here's my package.json
:
{
"dependencies" : {
"@codemirror/lang-rust" : "^6.0.0"
}
}
Error when running nota build index.nota
:
[9:58:41 PM] info: Starting build...
[9:58:42 PM] info: Waiting for browser (may take ~15s the first build)...
[9:58:42 PM] info: Rendering page: index -> dist/index.html
[9:58:42 PM] info: (/index) JSHandle@error
[9:58:42 PM] info: Note: for better stack traces, try building with -g
[9:58:42 PM] error: (/index)Error: Error: Unrecognized extension value in extension set ([object Object]). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.
at s (http://localhost:8000//index.mjs:301:19292)
at s (http://localhost:8000//index.mjs:301:18871)
at s (http://localhost:8000//index.mjs:301:19470)
at s (http://localhost:8000//index.mjs:301:18871)
at s (http://localhost:8000//index.mjs:301:19470)
at s (http://localhost:8000//index.mjs:301:18871)
at Oj (http://localhost:8000//index.mjs:301:19485)
at Zf.resolve (http://localhost:8000//index.mjs:301:18003)
at Ze.create (http://localhost:8000//index.mjs:301:27063)
at http://localhost:8000//index.mjs:306:52607
[9:58:44 PM] info: Cleaning up unused files...
[9:58:44 PM] info: Built in 2.20s.
(Anyway loving nota, very cool)
Hi, I saw the post on HN and this seems like a great fit for my use-case, which is writing white papers and technical experimental reports. However I didn't see a single example of adding an image or a video to a document, and I wondered whether that was possible within Nota's syntax or only via some custom JSX\HTML code.
Thanks and good luck :)
@Definition
and @Ref
, should maybe @Definition
-> @Def
?I know about Idyll, but I'm sure there's even more similar projects.
this URL:
https://github.com/nota-lang/nota
is not found on any of these pages:
some subfolders are linked, such as:
https://github.com/nota-lang/nota/tree/master/packages/nota-syntax
but nowhere is the proper repo itself linked. can we please resolve this?
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.