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 AST, Improve UX and refactor ? #51

Open
18 tasks
laobubu opened this issue Sep 29, 2018 · 9 comments
Open
18 tasks

Markdown AST, Improve UX and refactor ? #51

laobubu opened this issue Sep 29, 2018 · 9 comments

Comments

@laobubu
Copy link
Owner

laobubu commented Sep 29, 2018

First of all, thank 圆伞科技 for sponsoring HyperMD! I have some plan to make HyperMD much better:

Markdown AST

Separated Packges

  • Separate PowerPacks into NPM Packages.
  • A toolchain (or project boilerplate), for the separated npm packages.

Style / Theme

  • By default, hide line numbers, or make them less eye-catching
    • Move [Go back] button of addon/click to somewhere else.
  • Rewrite the theme .scss, make it more configurable (eg. dark mode?)
  • Find a better way to deal with external resources. (web fonts and icon images)
  • Remove all require("xxx.css") from source, so that we can make HyperMD less opinioned?

Marketing

  • Better doc and README
  • SEO? some articles? no idea yet.

UX Improving

  • hide-token shall
    • NOT hide tokens that are inside a selection.
    • NOT hide link address while editing an image/link.

However, for now, I'm too busy to maintain HyperMD. The plan also need further discussion. Feel free to leave comments. I think this can start in late October.

@laobubu laobubu changed the title Markdown AST, and refactor ? Markdown AST, Improve UX and refactor ? Sep 29, 2018
@laobubu
Copy link
Owner Author

laobubu commented Oct 1, 2018

CodeMirror 6 is coming with lots of changes. The new DOM structure of editor is clean and good, but it will be fully incompatible with HyperMD (v0.3.x)

@ycai2
Copy link

ycai2 commented Oct 3, 2018

感觉目前的styling不是特别configurable 希望将来可以有一个更好的构架. Either way, 非常感谢制作跟维护这个项目!

@laobubu
Copy link
Owner Author

laobubu commented Oct 9, 2018

To make both HyperMD and related npm packages (basically, powerpacks) friendly to plain browser env, a build-tool is extracted from HyperMD project.

And, the first separated package hypermd-katex is now online!

I'm going to remove all powerpacks from current HyperMD project, then provide them as npm packages. hypermd-katex already shows the promising possibility.

Maybe not powerpack. Let's call them addon?

https://github.com/search?q=topic%3Ahypermd-addon&type=Repositories

@laobubu
Copy link
Owner Author

laobubu commented Oct 9, 2018

hypermd-mathjax is now online! Also don't miss the wiki page

@michaelgmcd
Copy link
Contributor

How about plugins? This is the term used by tools like Draft.js and Eslint. Either way, I think it's a great idea and the name shouldn't have too much effect.

@laobubu
Copy link
Owner Author

laobubu commented Oct 16, 2018

Working on the theme and style

See https://github.com/laobubu/HyperMD/tree/refractor-separate-core/theme

  1. Writing an instruction for theme designers:
    https://github.com/laobubu/HyperMD/blob/refractor-separate-core/docs/theme-n-style.md
  2. Try making a dark theme... (unfinished)
  3. A "playground" page designed to test themes and addons.

default

@CoreParadox
Copy link

Has this made any progress? I love this project, but theming it is a nightmare currently (Unless you have some tips, the 800+ lines of css is quite demotivating)

@laobubu
Copy link
Owner Author

laobubu commented Mar 1, 2019

@CoreParadox

Has this made any progress? I love this project, but theming it is a nightmare currently (Unless you have some tips, the 800+ lines of css is quite demotivating)

Check this out: dark theme and light theme. Maybe this is the best trade-off between readable code and HyperMD's mess.

HyperMD uses lots of tricky methods to make CodeMirror WYSIWYG, which make is almost impossible to write clean css for themes.

Maybe getting rid of CodeMirror is the only solution. Meanwhile, a brand new CodeMirror is coming, and it will make almost all HyperMD tricks broken. That makes me feel demotivating.

ryooo pushed a commit to ryooo/HyperMD that referenced this issue Nov 20, 2020
@ilse-langnar
Copy link

Are you thinking of making an API for adding things like inline audio/video.
and other things such as iframe embeds etc.

And what about allowing native HTML like <br/> inside normal markdown that are just rendered as HTML?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants