Skip to content

terraphim/terraphim-editor

Repository files navigation

Terraphim Editor

A WebAssembly-based Markdown editor built with Rust, Shoelace styles and no other dependencies. Trunk is used for the build system

Features

  • Live Markdown preview
  • Pure Javascript for front end and WebAssembly implementation for rendering Markdown
  • Minimal external dependencies
  • Modern web components UI

Prerequisites

  1. Install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  1. Add the WebAssembly target:
rustup target add wasm32-unknown-unknown
  1. Install Trunk:
cargo install trunk

Development

Run the development server:

trunk serve

Visit http://127.0.0.1:8080 in your browser.

Testing

Rust Tests

Run the Rust unit tests:

cargo test

Frontend Tests (Wasm)

Run the frontend tests:

wasm-pack test --chrome

Building for Production

Create a production build:

trunk build --release

The output will be in the dist directory.

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published