goldmark icon indicating copy to clipboard operation
goldmark copied to clipboard

disbale CodeBlockParser but cont get empty result

Open zhangziang opened this issue 1 year ago • 2 comments

goldmark has https://github.com/yuin/goldmark/discussions in github. You should post only issues here. Feature requests and questions should be posted at discussions.

  • [ ] goldmark is fully compliant with the CommonMark. Before submitting issue, you must read CommonMark spec and confirm your output is different from CommonMark online demo.
    • [ ] Extensions(Autolink without < >, Table, etc) are not part of CommonMark spec. You should confirm your output is different from other official renderers correspond with an extension.
  • [ ] goldmark is not dedicated for Hugo. If you are Hugo user and your issue was raised by your experience in Hugo, you should consider create issue at Hugo repository at first .

Please answer the following before submitting your issue:

  1. What version of goldmark are you using? : v 1.6.0
  2. What version of Go are you using? : v 1.21.4
  3. What operating system and processor architecture are you using? : macOS 10.14
  4. What did you do? : parse text with some \t beginning and dont use CodeBlockParser
test message

    one line with \t beginning
    two line with \t beginning

eof

  1. What did you expect to see? : prase result contain text node, content is one line with \t beginning or two line with \t beginning
  2. What did you see instead? : prase result miss one line with \t beginning and two line with \t beginning
  3. Did you confirm your output is different from CommonMark online demo or other official renderer correspond with an extension?: maybe

zhangziang avatar Dec 07 '23 09:12 zhangziang

This issue is hard to make a decision that consists with CommonMark spec.

As defined in CommonMark spec, Block elements except indented code block elements can not accept indented lines. One of the options for this issue is add your own parser which returns true for CanAcceptIndentedLine() bool. Other options for this issue is add a functional option that makes Paragraphs indentable.

yuin avatar Dec 13 '23 13:12 yuin

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jan 13 '24 09:01 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jan 28 '24 09:01 github-actions[bot]