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

Code in header results into HTML in the roff output #69

Open
paravoid opened this issue Jan 1, 2021 · 1 comment
Open

Code in header results into HTML in the roff output #69

paravoid opened this issue Jan 1, 2021 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@paravoid
Copy link

paravoid commented Jan 1, 2021

The manpage:

## this is `code`

results into this output:

.SH "this is <code>code</code>"
@apjanke
Copy link
Owner

apjanke commented Jan 6, 2021

Yep, that's ugly. Let's fix that.

Will probably need to modify this:

        when 'h2'
          macro 'SH', quote(escape(node.inner_html))
        when 'h3'
          macro 'SS', quote(escape(node.inner_html))

to do a special inline_filter on the contents to remove or process markup instead of just escaping it.

Scheduling for version 0.11.

@apjanke apjanke self-assigned this Jan 6, 2021
@apjanke apjanke added the bug Something isn't working label Jan 6, 2021
@apjanke apjanke added this to the 0.11.0 milestone Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: High priority
Development

No branches or pull requests

2 participants