You can use raw HTML, or just a code span with some content which does not otherwise occur in your code spans and replace that with a LineBreak element with a filter.

``````markdown
## First line.`LB`Second line.
``````

``````lua
function Code (elem)
  if 'LB' == elem.text then
    return pandoc.LineBreak()
  end
  return nil
end
``````

HTH,

/bpj


Den ons 4 aug. 2021 16:16Alessandro G. <dreamwards-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
Hello, I am a new user. I apologize in advance should my question have already been covered (I did try searching) -- or make no sense! :)

Is it possible to use a raw attribute (raw_attribute extension) to express Pandoc's native format fragments? If yes, how?

As an example, Pandoc's native format allows this:
[Header 1 ("",[],[]) [Str "foo",LineBreak,Str "bar"]]
(note there is a "LineBreak" inside "Header")
for reference, this converts (as intended) to HTML as <h1>foo<br />bar</h1>

As far as I understand, it is not possible to express "LineBreak" inside "Header" via (simple) markdown (I might be wrong!), so I thought about raw_attribute.

So far I tried using variations (with/without commas) of
# foo`LineBreak`{=native}bar
but it did not work.

Thanks in advance! :)

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2d57c016-1442-4793-9e30-efceb8668938n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhDZUOoxVnsu8nWfkt9abVjjYkfwdb-qZP%2Bc9Y4RJRCyqA%40mail.gmail.com.