MCPcopy Index your code
hub / github.com/NoMoreDeps/marksjs

github.com/NoMoreDeps/marksjs @1.1.26

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.1.26 ↗ · + Follow
1,057 symbols 1,952 edges 184 files 20 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

{ Marks }

Marks is a markup language and a renderer that aims to keep the simplicity of Markdown,
and brings a world of possibilities by removing its limits...

Discover it on its official website Marks Website.

Marks is almost compatible with Markdown, but brings more flexibility using styles, and allows the creation of custom components in an universal and easy way.

CI

Installation

# With npm
npm i -S @marks-js/marks

# With yarn
yarn add @marks-js/marks

Marks comes with Typescript declaration files, so you don't need to install separated definition.

Get started

Minimal setup

// Import the minimal set of Objects
import { MarksRenderer, Plugins } from "@marks-js/marks";

// Create a new instance of Marks renderer
const marks = new MarksRenderer();

// Register the default plugins in order to make it work
marks.registerRenderers(
  ...Plugins().map(_ => new _()), 
);

const htmlNode = marks.render(` Marks code here `);
document.querySelector("#MoutingPoint").appendChild(htmlNode);

// Alternaticely, you can pass the node as a second parameter
marks.render(` Marks code here `, document.querySelector("#MoutingPoint"));

Marks is compatible with almost Markdown syntax, so what is cool in Markdown, is still available in Marks. But Marks allows you to add styles, so it is now possible to have a page written in Marks with css.

For full documentation please see it on Marks website or Marks documentation

Extra plugins and themes will be available soon.

To test it in live, go to the Playground.

Marks website is In Progress, so keep an eye on it.

Extension points exported contracts — how you extend this code

IRenderingEnine (Interface)
(no doc) [28 implementers]
src/Interfaces/IRenderingEngine.ts
IModel (Interface)
(no doc) [7 implementers]
src/Models/IModel.ts
IRenderingEnine (Interface)
(no doc) [20 implementers]
publish/marks/Interfaces/IRenderingEngine.d.ts
IMarksRenderer (Interface)
(no doc) [5 implementers]
src/Interfaces/IMarksRenderer.ts
IModel (Interface)
(no doc) [7 implementers]
publish/marks/Models/IModel.d.ts
IVDom_Element (Interface)
(no doc) [3 implementers]
src/Interfaces/IVDom_Element.ts
IMarksRenderer (Interface)
(no doc) [5 implementers]
publish/marks/Interfaces/IMarksRenderer.d.ts
IDocument (Interface)
(no doc) [3 implementers]
src/Interfaces/IDocument.ts

Core symbols most depended-on inside this repo

createElement
called by 177
publish/marks/Interfaces/IDocument.d.ts
appendChild
called by 138
publish/marks/Interfaces/IVDom_Element.d.ts
s
called by 96
www/js/Marks.Bootstrap.dist.js
s
called by 87
www/js/Marks.dist.js
setAttribute
called by 61
publish/marks/Interfaces/IVDom_Element.d.ts
s
called by 53
www/js/app.js
setInnerHTML
called by 39
publish/marks/Interfaces/IVDom_Element.d.ts
findFirst
called by 25
publish/marks/Interfaces/IDocument.d.ts

Shape

Method 633
Class 302
Function 112
Interface 10

Languages

TypeScript100%

Modules by API surface

www/js/Marks.dist.js93 symbols
www/js/Marks.Bootstrap.dist.js93 symbols
www/js/app.js38 symbols
src/VDom/Html/VDom_Element.ts22 symbols
publish/marks/VDom/Html/VDom_Element.js22 symbols
src/Interfaces/IVDom_Element.ts17 symbols
publish/marks/Interfaces/IVDom_Element.d.ts17 symbols
www/js/Marks.Mermaid.dist.js16 symbols
src/VDom/Parser/Node.ts15 symbols
publish/marks/VDom/Parser/Node.js15 symbols
publish/marks/Renderer/Plugins/Helper.js14 symbols
Plugins/Mermaid/publish/mermaid/Block_Mermaid.js13 symbols

For agents

$ claude mcp add marksjs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page