Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove traling newline in Markdown code blocks #336

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Keluaa
Copy link

@Keluaa Keluaa commented Jan 2, 2024

This PR makes OhMyREPL match exactly the default Markdown formatting of the stdlib when OhMyREPL.HIGHLIGHT_MARKDOWN[] == false.

Formatted code in REPL help is then a bit more compact, with the downside that it might be a tad harder to make the difference between the output of a code example and text.

Before:

julia> using Markdown

julia> md"""
       A
       ```julia
       function a() end
       ```
       B
       """
  A

  function a() end

  B

julia> using OhMyREPL

julia> md"""
       A
       ```julia
       function a() end
       ```
       B
       """
  A

  function a() end


  B

After:

julia> using Markdown, OhMyREPL

julia> md"""
       A
       ```julia
       function a() end
       ```
       B
       """
  A

  function a() end

  B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant