Skip to content
/ muya Public

πŸ“„ Future markdown editor for web browser applications development

License

Notifications You must be signed in to change notification settings

marktext/muya

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5f3cbbb Β· Oct 12, 2024
Apr 22, 2024
Apr 19, 2024
Apr 19, 2024
Oct 12, 2024
Oct 12, 2024
Sep 18, 2023
Apr 19, 2024
Apr 19, 2024
Apr 22, 2024
Sep 19, 2023
Apr 19, 2024
Sep 18, 2023
Apr 19, 2024
Jun 17, 2020
Apr 19, 2024
Apr 19, 2024
Oct 1, 2024
Jun 11, 2024
Apr 19, 2024
Oct 1, 2024

Repository files navigation

muya

Muya originated from MarkText, which was originally used in the MarkText and provides Markdown editing support for MarkText. Today, Muya is available as a stand-alone library that provides an efficient Markdown editing experience for many web browser applications.

πŸ…°οΈ Muya is still under development and should not be used for production.

Installing

npm install @muyajs/core

Quick Start

import {
    CodeBlockLanguageSelector,
    EmojiSelector,
    ImageResizeBar,
    ImageToolBar,
    InlineFormatToolbar,
    MarkdownToHtml,
    Muya,
    ParagraphFrontButton,
    ParagraphFrontMenu,
    ParagraphQuickInsertMenu,
    PreviewToolBar,
    TableColumnToolbar,
    TableDragBar,
    TableRowColumMenu,
    zh,
} from '@muyajs/core';

Muya.use(EmojiSelector);
Muya.use(InlineFormatToolbar);
Muya.use(ImageToolBar);
Muya.use(ImageResizeBar);
Muya.use(CodeBlockLanguageSelector);

Muya.use(ParagraphFrontButton);
Muya.use(ParagraphFrontMenu);
Muya.use(TableColumnToolbar);
Muya.use(ParagraphQuickInsertMenu);
Muya.use(TableDragBar);
Muya.use(TableRowColumMenu);
Muya.use(PreviewToolBar);

import '@muyajs/core/lib/style.css';

const container = document.querySelector('#editor');
const muya = new Muya(container, {
    markdown: 'Hello world',
});

muya.locale(zh);

muya.init();

There is also an example of how to use muya in Typescript.

Documents

Coming soon!!!

Development

commit-msg-guideline

# step1: install dependencies
pnpm install
# step2: run the development codes
pnpm run dev

Build

pnpm build

publish

# update version numbers.
pnpm run release
# publish to npm.
pnpm -r publish

FAQ

❓ What is the relationship between MarkText and Muya?

Muya is derived from MarkText. Our team believes that Muya should not be limited to desktop applications. It should also run in a web browser, so we have done some compatibility with browsers and Electron applications, so that Muya can leave Electron Apps and can run into different browser environments.

❓What is the relationship between MarkText's version and the Muya's version?

None!

Built with muya

  • MarkText - Next generation markdown editor, running on platforms of MacOS Windows and Linux.

  • MindBox - A note-taking app that perfectly supports markdown syntax.

License

MIT Β© Jocs

About

πŸ“„ Future markdown editor for web browser applications development

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages