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

Using level-four headings to separate cards leads to some issues #123

Open
Colbyzn opened this issue Dec 9, 2023 · 3 comments
Open

Using level-four headings to separate cards leads to some issues #123

Colbyzn opened this issue Dec 9, 2023 · 3 comments

Comments

@Colbyzn
Copy link

Colbyzn commented Dec 9, 2023

Problem Description

When I use level-four headings to separate cards, some errors occur:

  1. The noteID annotations cannot be automatically inserted (even though I have enabled this feature);

    image
    image

  2. The content on the back of the card includes level-three headings that it shouldn't.

    image

@jasonwilliams
Copy link
Owner

Hey thanks for raising

if you’re setting level 4 headings as a separator then it won’t separate on level 3 headings if I understand correctly. It will just include that like any other content.

Am I missing something here?

As for the NoteIDs we will have to look into that as it’s quite beta at the moment.

I’m also open to contributions as I don’t have much time to maintain this project at the moment

@Colbyzn
Copy link
Author

Colbyzn commented Dec 9, 2023

I think you may have misunderstood my point.

I write the content in the markdown format following the structure of book, chapter, and section, which are represented by level-one, level-two, and level-three headings, respectively. The level-four headings represent questions, and the content below them represents answers.

If I write according to the standard markdown rules, where the headings are incremental, then the answer content corresponding to the level-four headings can include level-five and level-six headings. However, it should not include headings smaller than level-four, such as level-three, level-two, and level-one headings.

Therefore, headings smaller than level-four should not be placed within the answer.

I believe that when processing the content on the back of the card, a judgment condition should be added: if headings smaller than level-four are found in the content, they should be removed.

I understand that you are quite busy.

I have also considered making my own contributions to this project, but my programming skills are not yet sufficient to do so.

Therefore, I may need to spend more time studying your code and then thinking about how to implement the relevant features.

And until then, I can only hope that you can solve these problems.

@Colbyzn
Copy link
Author

Colbyzn commented Dec 9, 2023

supplement:

The processing logic for the content on the back of the card should be determined by the card separator set by the user, deciding which titles should not be included on the back of the card.

For example:

  1. If the user uses level 2 headings as the card separator, then the back of the card should not include level 1 headings.
  2. If the user uses level 3 headings as the card separator, then the back of the card should not include level 1 headings and level 2 headings.
  3. If the user uses level 4 headings as the card separator, then the back of the card should not include level 1、level 2 and level 3 headings.
    ......

From the perspective of the hierarchy of the mind map, I would not want the level 3 headings 'CSS 选择器' to be processed as the answer to the level 4 headings 'CSS 作用'.

image

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

2 participants