Skip to content

SmartyPants not applicable to inline HTML, quotations #361

@avery-laird

Description

@avery-laird

This is not a major issue, but currently the only way to render a block quote with a citation footer is to inject HTML in the markdown. However, the smartypants extension in redcarpet doesn't touch the HTML, so if something like this is in the markdown:

<blockquote>
  <p>
    "One good test is worth a thousand expert opinions."
  </p>
  <footer><cite title="Wernher Von Braun">Wernher Von Braun</cite></footer>
</blockquote>

Then the quotes will not be converted into HTML entities. Obviously this problem is not limited to blockquotes in particular, but any inlined HTML. Like the original smartypants implementation, nothing inside <pre>, <code>, <kbd>, or <script> tag blocks should be modified, but pretty much anything else should be (as far as I know).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions