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

feat(core): markdown smart wrapInLine #492

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

obenjiro
Copy link
Collaborator

Third an last one in the series of PR's to markdown. This one is also fixing consistency between WYSIWYG and MARKDOWN modes. Now we can use buttons like checkbox and quote while maintaining integrity of markdown syntax in hardcore examples.

(tabs, lists, etc.)

Tabs.mov

PS: I will add test a little bit later

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

} else {
// Calculate indentation from the first line
const firstLine = state.doc.lineAt(range.from);
let indentation = '';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets move code to getIndentation orcalculacteIndentation orparseIndentation`
and tests plz

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

Successfully merging this pull request may close these issues.

3 participants