Skip to content

[canary 0.0.1] admonition blocks without a title line will not render properly after a page refresh #1724

Closed

Description

@cannibalox

Describe the bug

- #+BEGIN_QUOTE
  test
  #+END_QUOTE
- #+BEGIN_IMPORTANT
  test
  #+END_IMPORTANT

should produce this
image

at first it ssems fine, but after a page refresh it looks like this:
image
and #+BEGIN_QUOTE and #+END_QUOTE are parsed as clickable links to pages [[#+BEGIN_QUOTE]] and [[#+END_QUOTE]]

to have a correct bahevior, we have to add a title line before the admonition block like this:

- add a title line
#+BEGIN_QUOTE
then it works as expected
#+END_QUOTE
- #+BEGIN_IMPORTANT
  this one will fail
  #+END_IMPORTANT

Expected behavior

I guess the expected behavior should be similar to classic logseq, it auto adds a blank line/linebreak in the raw file but renders as expected ?

## 
#+BEGIN_IMPORTANT
test
#+END_IMPORTANT
##

Desktop (please complete the following information):
win10 logseq canary 0.0.1

Activity

  1. added
    :type/bug
    on May 4, 2021
  2. added a commit that references this issue on May 4, 2021
    7f095b5
  3. tiensonqin commented on May 4, 2021

    @tiensonqin
    Contributor

    Thanks for the reporting, it should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    :type/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions