[GH-ISSUE #2372] [FR] Markdown divider implement ___ #1006

Closed
opened 2026-03-23 20:44:18 +00:00 by mirror · 18 comments
Owner

Originally created by @annieappflowy on GitHub (Apr 28, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2372

Originally assigned to: @AmanNegi on GitHub.

Description

You can use ___ on its own line to add a horizontal bar.

Impact

Markdown users

Additional Context

No response

Originally created by @annieappflowy on GitHub (Apr 28, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2372 Originally assigned to: @AmanNegi on GitHub. ### Description You can use ___ on its own line to add a horizontal bar. ### Impact Markdown users ### Additional Context _No response_
mirror 2026-03-23 20:44:18 +00:00
Author
Owner

@AmanNegi commented on GitHub (Apr 30, 2023):

Hey there, I would like to work on this. If I'm right this is similar to our Octernship task right?

<!-- gh-comment-id:1528987020 --> @AmanNegi commented on GitHub (Apr 30, 2023): Hey there, I would like to work on this. If I'm right this is similar to our Octernship task right?
Author
Owner

@annieappflowy commented on GitHub (Apr 30, 2023):

This is to implement a markdown syntax
@AmanNegi , would you like to give it a try?

<!-- gh-comment-id:1529025784 --> @annieappflowy commented on GitHub (Apr 30, 2023): This is to implement a markdown syntax @AmanNegi , would you like to give it a try?
Author
Owner

@AmanNegi commented on GitHub (Apr 30, 2023):

I would like to but I didn't get what you exactly meant by implementing a markdown syntax. If something similar is already implemented could you please redirect me?

<!-- gh-comment-id:1529026687 --> @AmanNegi commented on GitHub (Apr 30, 2023): I would like to but I didn't get what you exactly meant by implementing a markdown syntax. If something similar is already implemented could you please redirect me?
Author
Owner

@annieappflowy commented on GitHub (Apr 30, 2023):

The Markdown guidebook: https://appflowy.gitbook.io/docs/essential-documentation/markdown
An example illustrating how to implement: https://github.com/AppFlowy-IO/AppFlowy/discussions/1100

<!-- gh-comment-id:1529034771 --> @annieappflowy commented on GitHub (Apr 30, 2023): The Markdown guidebook: https://appflowy.gitbook.io/docs/essential-documentation/markdown An example illustrating how to implement: https://github.com/AppFlowy-IO/AppFlowy/discussions/1100
Author
Owner

@AmanNegi commented on GitHub (Apr 30, 2023):

Yeah this is similar to the Octernship task... I can surely work on this

<!-- gh-comment-id:1529035201 --> @AmanNegi commented on GitHub (Apr 30, 2023): Yeah this is similar to the Octernship task... I can surely work on this
Author
Owner

@annieappflowy commented on GitHub (Apr 30, 2023):

Sounds good! Thank you 🙏

<!-- gh-comment-id:1529035674 --> @annieappflowy commented on GitHub (Apr 30, 2023): Sounds good! Thank you 🙏
Author
Owner

@AmanNegi commented on GitHub (May 12, 2023):

Hey there, sorry I was busy so this issue went inactive. I just now started looking at this issue, however I just noticed that --- has been previously implemented to add divider but it doesn't work currently. Also, I wanted to ask that the appflowy_editor was previously released separately, so is this issue still relevant here?

<!-- gh-comment-id:1545628879 --> @AmanNegi commented on GitHub (May 12, 2023): Hey there, sorry I was busy so this issue went inactive. I just now started looking at this issue, however I just noticed that `---` has been previously implemented to add divider but it doesn't work currently. Also, I wanted to ask that the `appflowy_editor` was previously released separately, so is this issue still relevant here?
Author
Owner

@Xazin commented on GitHub (May 12, 2023):

Hey there, sorry I was busy so this issue went inactive. I just now started looking at this issue, however I just noticed that --- has been previously implemented to add divider but it doesn't work currently. Also, I wanted to ask that the appflowy_editor was previously released separately, so is this issue still relevant here?

It should be implemented in the appflowy_editor repository.

Most, if not all, issues that have the tag Editor are related to the appflowy_editor project, and thus have to be implemented there.

All that has happened, is that the editor itself was decoupled from AppFlowy project, allowing others to easily adopt the Editor to build their own applications.

<!-- gh-comment-id:1545633094 --> @Xazin commented on GitHub (May 12, 2023): > Hey there, sorry I was busy so this issue went inactive. I just now started looking at this issue, however I just noticed that `---` has been previously implemented to add divider but it doesn't work currently. Also, I wanted to ask that the `appflowy_editor` was previously released separately, so is this issue still relevant here? It should be implemented in the appflowy_editor repository. Most, if not all, issues that have the tag `Editor` are related to the appflowy_editor project, and thus have to be implemented there. All that has happened, is that the editor itself was decoupled from AppFlowy project, allowing others to easily adopt the Editor to build their own applications.
Author
Owner

@AmanNegi commented on GitHub (May 12, 2023):

Okay great thanks a lot for the clarification @Xazin. However, I believe that we are supposed to create the shortcuts, builders and menu item within the main project itself, as we already have a few under plugins\document\presentation\plugins. Correct me if I am wrong here.

Can you please clarify on this @LucasXu0.

<!-- gh-comment-id:1545770282 --> @AmanNegi commented on GitHub (May 12, 2023): Okay great thanks a lot for the clarification @Xazin. However, I believe that we are supposed to create the shortcuts, builders and menu item within the main project itself, as we already have a few under `plugins\document\presentation\plugins`. Correct me if I am wrong here. Can you please clarify on this @LucasXu0.
Author
Owner

@Xazin commented on GitHub (May 12, 2023):

Okay great thanks a lot for the clarification @Xazin. However, I believe that we are supposed to create the shortcuts, builders and menu item within the main project itself, as we already have a few under plugins\document\presentation\plugins. Correct me if I am wrong here.

Can you please clarify on this @LucasXu0.

I don't think so, divider is a common markdown syntax, I'm not sure why it was implemented in the main project, it's most likely a remnant. This https://github.com/AppFlowy-IO/AppFlowy/tree/main/frontend/appflowy_flutter/lib/plugins/document/presentation/plugins/divider should be moved to the editor at this location https://github.com/AppFlowy-IO/appflowy-editor/tree/main/lib/src/render

Along with what it touches. (And support for ___ should be added)

Similary the markdown encoder/decoder should be updated to include the divider notation support. See https://github.com/AppFlowy-IO/appflowy-editor/tree/main/lib/src/plugins/markdown

<!-- gh-comment-id:1545839991 --> @Xazin commented on GitHub (May 12, 2023): > Okay great thanks a lot for the clarification @Xazin. However, I believe that we are supposed to create the shortcuts, builders and menu item within the main project itself, as we already have a few under `plugins\document\presentation\plugins`. Correct me if I am wrong here. > > Can you please clarify on this @LucasXu0. I don't think so, divider is a common markdown syntax, I'm not sure why it was implemented in the main project, it's most likely a remnant. This https://github.com/AppFlowy-IO/AppFlowy/tree/main/frontend/appflowy_flutter/lib/plugins/document/presentation/plugins/divider should be moved to the editor at this location https://github.com/AppFlowy-IO/appflowy-editor/tree/main/lib/src/render Along with what it touches. (And support for `___` should be added) Similary the markdown encoder/decoder should be updated to include the divider notation support. See https://github.com/AppFlowy-IO/appflowy-editor/tree/main/lib/src/plugins/markdown
Author
Owner

@AmanNegi commented on GitHub (May 17, 2023):

Okay, so we are supposed to make the changes in the editor repo. Sorry for the delay, now that it's clear I will work on this immediately.

<!-- gh-comment-id:1551448464 --> @AmanNegi commented on GitHub (May 17, 2023): Okay, so we are supposed to make the changes in the editor repo. Sorry for the delay, now that it's clear I will work on this immediately. ✨
Author
Owner

@annieappflowy commented on GitHub (May 17, 2023):

Not related to the thread...
@AmanNegi , what's your Discord handle? Please DM me on Discord.

<!-- gh-comment-id:1551478898 --> @annieappflowy commented on GitHub (May 17, 2023): Not related to the thread... @AmanNegi , what's your Discord handle? Please DM me on Discord.
Author
Owner

@annieappflowy commented on GitHub (Jun 12, 2023):

@AmanNegi , are you still working on this?

<!-- gh-comment-id:1587158018 --> @annieappflowy commented on GitHub (Jun 12, 2023): @AmanNegi , are you still working on this?
Author
Owner

@AmanNegi commented on GitHub (Jun 12, 2023):

Yep now I am working on this, was waiting for the merging of develop and main branch.

<!-- gh-comment-id:1587276268 --> @AmanNegi commented on GitHub (Jun 12, 2023): Yep now I am working on this, was waiting for the merging of `develop` and `main` branch.
Author
Owner

@Xazin commented on GitHub (Jun 13, 2023):

Yep now I am working on this, was waiting for the merging of develop and main branch.

See for reference https://github.com/AppFlowy-IO/appflowy-editor/pull/118
All you need to do is add a Shortcut for _ that triggers the insertDividerHandler.

On editor repo.

<!-- gh-comment-id:1588835597 --> @Xazin commented on GitHub (Jun 13, 2023): > Yep now I am working on this, was waiting for the merging of `develop` and `main` branch. See for reference https://github.com/AppFlowy-IO/appflowy-editor/pull/118 All you need to do is add a Shortcut for `_` that triggers the insertDividerHandler. On editor repo.
Author
Owner

@AmanNegi commented on GitHub (Jun 13, 2023):

Thanks for the reference @Xazin. Perhaps should I move this issue in the editor_repo?

<!-- gh-comment-id:1589310568 --> @AmanNegi commented on GitHub (Jun 13, 2023): Thanks for the reference @Xazin. Perhaps should I move this issue in the `editor_repo`?
Author
Owner

@Xazin commented on GitHub (Jun 13, 2023):

Thanks for the reference @Xazin. Perhaps should I move this issue in the editor_repo?

No need, it's fine, we can still link to this issue from the PR.

<!-- gh-comment-id:1589317806 --> @Xazin commented on GitHub (Jun 13, 2023): > Thanks for the reference @Xazin. Perhaps should I move this issue in the `editor_repo`? No need, it's fine, we can still link to this issue from the PR.
Author
Owner

@AmanNegi commented on GitHub (Jun 13, 2023):

Okay great! 😺

<!-- gh-comment-id:1589321242 --> @AmanNegi commented on GitHub (Jun 13, 2023): Okay great! :smiley_cat:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#1006
No description provided.