Markdown.Avalonia icon indicating copy to clipboard operation
Markdown.Avalonia copied to clipboard

usage experience

Open dayAndnight2018 opened this issue 4 years ago • 16 comments
trafficstars

Question 1:

image when I use ">" to perform a break line, it not work. if I add a blank line between ">" lines, it looks ugly.

Question 2:

if it is needed to support padding when I use a “to show codes” under a list item? otherwise, it looks ugly, too! when I use "code " under a list item, it also blocks the number to be auto increment as what shows in the following picture.

image

dayAndnight2018 avatar Jan 20 '21 08:01 dayAndnight2018

About Q1

This is match to specifications.

If you insert empty line between ">" lines. Each separated ">" lines are displayed in each different paragraphs.

If you want to change the paragraph in blockquote. You should precode empty line with '>'.

ugly sample

> one

> two

one

two

correct sample

> one
>
> tww

one

tww

whistyun avatar Jan 20 '21 13:01 whistyun

About Q1

This is match to specifications.

If you insert empty line between ">" lines. Each separated ">" lines are displayed in each different paragraphs.

If you want to change the paragraph in blockquote. You should precode empty line with '>'.

ugly sample

> one

> two

one

two

correct sample

> one
>
> tww

one tww

I want a new line instead of a blank line

dayAndnight2018 avatar Jan 20 '21 15:01 dayAndnight2018

If you want an ONE linebreak, you have to add 2 spaces to line tail.

> one  
> two

one
two

If you want more than one linebreak, I think it should be solved by #30.

whistyun avatar Jan 20 '21 16:01 whistyun

About Q1 This is match to specifications. If you insert empty line between ">" lines. Each separated ">" lines are displayed in each different paragraphs. If you want to change the paragraph in blockquote. You should precode empty line with '>'. ugly sample

> one

> two

one

two

correct sample

> one
>
> tww

one tww

I want a new line instead of a blank line

ok, how about question 2?

dayAndnight2018 avatar Jan 21 '21 00:01 dayAndnight2018

If you want an ONE linebreak, you have to add 2 spaces to line tail.

> one  
> two

one two

If you want more than one linebreak, I think it should be solved by #30.

it not satisfy me about padding at the head of a new line:

image

dayAndnight2018 avatar Jan 21 '21 01:01 dayAndnight2018

About Q2

It is bug that codeblock can not be included in list.

Not support starting ordered lists at an arbitrary number is not specification violation. But supporting is allowed, so I may support it.

whistyun avatar Jan 21 '21 10:01 whistyun

If you want an ONE linebreak, you have to add 2 spaces to line tail.

> one  
> two

one two

If you want more than one linebreak, I think it should be solved by #30.

it not satisfy me about padding at the head of a new line:

image

Did you mean that you want treat '>' as codeblock? '>' is blockquote syntax for quottng a sentence, So duplication spaces is removed.

And If you indent a sentence, It is treated as codeblock. It's strange that it doesn't require a blank line before indentation, but it follows the spec approximately.

whistyun avatar Jan 21 '21 10:01 whistyun

If you want an ONE linebreak, you have to add 2 spaces to line tail.

> one  
> two

one two

If you want more than one linebreak, I think it should be solved by #30.

it not satisfy me about padding at the head of a new line: image

Did you mean that you want treat '>' as codeblock? '>' is blockquote syntax for quottng a sentence, So duplication spaces is removed.

And If you indent a sentence, It is treated as codeblock. It's strange that it doesn't require a blank line before indentation, but it follows the spec approximately.

I think it as the "```",isn't it?

dayAndnight2018 avatar Jan 21 '21 11:01 dayAndnight2018

Did you say about this translation? image

In Markdown, code block is expressed two syntaxes.

  1. surrounded by "```"

    ```
    code
    ```
    
    code
    
  2. indentation

        code
    
     code
    

whistyun avatar Jan 21 '21 11:01 whistyun

Did you say about this translation? image

In Markdown, code block is expressed two syntaxes.

  1. surrounded by "```"

    code

    code
    
  2. indentation

        code
    
     code
    

what I want is just like this:

const(
     A = A,
     B = B
)

dayAndnight2018 avatar Jan 22 '21 02:01 dayAndnight2018

another question is : when I use "```" frequently,the parse result may be unexpected. It is a bug.

dayAndnight2018 avatar Jan 22 '21 07:01 dayAndnight2018

Maybe there needs a horizonal scroll bar when input more words in the direction of horizon. Now is hidden in the tag "```"

dayAndnight2018 avatar Jan 22 '21 08:01 dayAndnight2018

what I want is just like this:

const(
     A = A,
     B = B
)

I think you should use codeblock. I will not remove indent-codeblock. And I think there is no way to cohabit indent-codeblock and more spaces in Markdown.

whistyun avatar Jan 22 '21 08:01 whistyun

what I want is just like this:

const(
     A = A,
     B = B
)

I think you should use codeblock. I will not remove indent-codeblock. And I think there is no way to cohabit indent-codeblock and more spaces in Markdown.

So, fix the indent of code block first.

dayAndnight2018 avatar Jan 22 '21 10:01 dayAndnight2018

I released v0.10.1 and v0.9.1. This version allows us to put codeblock in list. And it has been confirmed to work with only one code block in the block quotes.

image

whistyun avatar Jan 27 '21 10:01 whistyun

Note that an indented-codeblock syntax is changed. In previous version, indented-codeblock didn't require a blank line at the beginning, but this version dose. This behavior is not mentioned in original spec, but is implemented.

image

whistyun avatar Jan 27 '21 10:01 whistyun