asciidoctor / kramdown-asciidoc

A kramdown extension for converting Markdown documents to AsciiDoc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

render source highlighting above a code block correctly

rolfedh opened this issue · comments

When I run:

find ./ -name "*.md"  \
    -type f \
    -exec sh -c  \
    'kramdoc --format=GFM  \
    --output={}.adoc {}' \;

against /docs in a local clone of https://github.com/rolfedh/build, kramdown renders code blocks as h2's.

For example, line 71+ of docs/build.md input file looks like this:

[source,yaml]
----
apiVersion: build.dev/v1alpha1
kind: Build
metadata:
  name: buildpack-nodejs-build
spec:
  source:
    url: https://github.com/sclorg/nodejs-ex
    credentials:
      name: source-repository-credentials
----

And line 71+ of the build.md.adoc output file looks like this:

== [source,yaml]

apiVersion: build.dev/v1alpha1
kind: Build
metadata:
  name: buildpack-nodejs-build
spec:
  source:
    url: https://github.com/sclorg/nodejs-ex
    credentials:
      name: source-repository-credentials
----

My mistake. I unintentionally modified the code blocks in the markdown input files.

Hehehe. I was going to say, it looks like you already made the AsciiDoc ;)