-
Notifications
You must be signed in to change notification settings - Fork 0
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
Figure out line wrapping #11
Comments
Kramdown source code reveals it's options. Something along |
Grrr. the more correct fix that passes kramdown checks but appears to do nothing useful is render_doc = Kramdown::Document.new(File.read(File.join(dir, file)),
{ :syntax_highlighter => "rouge",
:syntax_highlighter_opts => { css_class: false, line_numbers: false, inline_theme: "github" },
cfg: cfg, chapter: sect_nm, input: cfg['input_format'],
gfm_quirks: ['hard_wrap']
} It's going to be much easier to fix the source md than figure out kramdown's odd logic. I'm going to repeat myself and little more strongly "I am not going to become a kramdown expert" Life is short and I've got enough to do. You've got a real proof of concept. You asked for a list of issues. You got that. Fix one of them. |
Could you provide a simple test case that cause the problem? I need a test case to work on. |
The https://github.com/Shoes3/shoes3/wiki/8.0-New-Widgets file in the wiki is small and has several wrapping issues. |
Have you tried :wrap => word ? Also, would you post a screenshot of the current defective rendering? |
Now the problem is very clear. Thanks. |
The :wrap option is in the manual. We did have a lengthy conversation about it when it came to Shoes Console. The line endings are not problematic (see screenshot below with display hidden characters turned on in an editor). There are two noticeable problems: 1) lines are cut off, 2) we may have to ignore some end of lines. The Markdown file itself is fine. |
Kramdown generates multiple para and call convert_br on each end lines. It should ideally group together lines of a paragraph into one para. |
There is the gkt3 wrap word option. Kramdown however, https://kramdown.gettalong.org/options.html as some odd logic involved with hardwrap - the default is true but there doesn't appear to be anyway to turn if off. |
Are you using options correctly? According to this test case, it should be |
Excellent! I'm tempted to close the issue. |
* no hook up to the back forward yet, nor to picky. * baby steps.
Shall we close this issue? There are few others might also be deserving to be closed. |
Oddly enough, there isn't a lot of google help on how to do that. (other than read and grok the entire kramdown source code). I don't want to be a kramdown internals guru! This doesn't work:
The text was updated successfully, but these errors were encountered: