Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown editor #728

Merged
merged 4 commits into from
Apr 7, 2024
Merged

Markdown editor #728

merged 4 commits into from
Apr 7, 2024

Conversation

paulrobertlloyd
Copy link
Collaborator

@paulrobertlloyd paulrobertlloyd commented Apr 2, 2024

By integrating Easy Markdown Editor, it becomes possible to show Markdown with syntax highlighting:

Screenshot of Markdown editor on ‘Create a new note page’.

It also adds:

  • Image uploading
  • History
  • Autosave
  • Side-by-side preview
  • Fullscreen mode

Using fullscreen mode in a web app makes Indiekit’s content editing interface very compelling:

Screenshot of editor in full screen mode.

This adds quite a bit of JavaScript so in order to keep the overall asset size low, we need to remove something. Given the little observable different the web font adds, I’ve removed that and gone back to using system-ui.

Overall, when also considering the other frontend optimisations made for this release (namely caching and compression), we actually end up with a more feature rich interface in fewer bytes:

Version Requests Page Weight Speed Index
Beta 9 7 228KB 1.830s
Beta 10 6 125KB 1.400s

@paulrobertlloyd paulrobertlloyd added enhancement New feature or request frontend labels Apr 2, 2024
@paulrobertlloyd paulrobertlloyd added this to the v1.0 milestone Apr 2, 2024
@paulrobertlloyd paulrobertlloyd changed the title Feat/markdown editor Markdown editor Apr 2, 2024
@paulrobertlloyd paulrobertlloyd force-pushed the feat/markdown-editor branch 10 times, most recently from ce0d3fb to 0511cc7 Compare April 5, 2024 15:36
@paulrobertlloyd paulrobertlloyd force-pushed the feat/markdown-editor branch 12 times, most recently from 24925e8 to 57ecd8f Compare April 7, 2024 18:52
@paulrobertlloyd paulrobertlloyd marked this pull request as ready for review April 7, 2024 19:47
@paulrobertlloyd paulrobertlloyd merged commit d21ad28 into main Apr 7, 2024
3 checks passed
@paulrobertlloyd paulrobertlloyd deleted the feat/markdown-editor branch April 7, 2024 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant