gettalong / kramdown

kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.
http://kramdown.gettalong.org
Other
1.72k stars 274 forks source link

html_to_native: use normal links instead of reference-style links #775

Closed collimarco closed 1 year ago

collimarco commented 1 year ago

I need to convert some HTML to markdown.

I use html_to_native: true, however the links are all listed at the bottom of the page instead of inline.

Is it possible to have normal, inline links without foot notes?

gettalong commented 1 year ago

See https://github.com/gettalong/kramdown/blob/master/lib/kramdown/converter/kramdown.rb#L291-L306 - some links are converted to inline but not all (e.g. full URLs are always converted to reference style links). This is currently not configurable.