render source highlighting above a code block correctly
rolfedh opened this issue · comments
Rolfe Dlugy-Hegwer commented
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
----
Rolfe Dlugy-Hegwer commented
My mistake. I unintentionally modified the code blocks in the markdown input files.
Dan Allen commented
Hehehe. I was going to say, it looks like you already made the AsciiDoc ;)