Skip to content

Figure out line wrapping #11

@ccoupe

Description

@ccoupe

You may need gfm_quirks and possibly hard_wrap.

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:

    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'],
          hardwrap: true, paragraph_end:  false
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions