HASEL-UZH / TACOS-labstudy-tasks

0 stars 0 forks source link

HTML Editor: Adding markdown download #4

Open AlexanderLill opened 1 month ago

AlexanderLill commented 1 month ago

Project

For this task, you will be working on a markdown editor called "Trix". "Trix" is a web application written in JavaScript and allows one to write and format text using simple styles such as bold, lists, and hyperlinks.

Setup

  1. Start the app in the terminal using the command npm run dev
  2. Navigate to the webpage http://localhost:8000 and reload once
  3. To stop the app, use CTRL+C within the terminal

Feature Request

Users have requested the functionality to download the content of the editor as a markdown file. The user interface should include an additional button to trigger the markdown download, as indicated in red in the picture. Please read the following text carefully to implement this task.

trix-both-buttons

While coding

👉 While working, search online for needed information. It is quicker than navigating through the entire codebase. 👉 Save the file to see the effects of your changes (no need to refresh the page in the browser).

Task Description

To implement this feature, two changes are necessary:

Change 1: Implement markdown conversion

Change 2: Change the icon of the button