summaryrefslogtreecommitdiff
path: root/Libraries/LibMarkdown/CodeBlock.cpp
AgeCommit message (Collapse)Author
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling
2021-01-12AK: Simplify constructors and conversions from nullptr_tLenny Maiorani
Problem: - Many constructors are defined as `{}` rather than using the ` = default` compiler-provided constructor. - Some types provide an implicit conversion operator from `nullptr_t` instead of requiring the caller to default construct. This violates the C++ Core Guidelines suggestion to declare single-argument constructors explicit (https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c46-by-default-declare-single-argument-constructors-explicit). Solution: - Change default constructors to use the compiler-provided default constructor. - Remove implicit conversion operators from `nullptr_t` and change usage to enforce type consistency without conversion.
2020-10-31LibMarkdown: Use JS::MarkupGenerator for "js" code blocks :^)Linus Groh
2020-10-31LibMarkdown: Replace inline styles in HTML with CSS in <head>Linus Groh
2020-09-27LibMarkdown: Take a 'view_width' argument for render_for_terminal()AnotherTest
Some constructs will require the width of the terminal (or a general 'width') to be rendered correctly, such as tables.
2020-05-30LibMarkdown: Change internal MD API to return OwnPtrsFalseHonesty
Previously, all Markdown blocks had a virtual parse method which has been swapped out for a static parse method returning an OwnPtr of that block's type. The Text class also now has a static parse method that will return an Optional<Text>.
2020-05-05LibMarkdown: Escape HTML entities in textLinus Groh
2020-05-05LibMarkdown: Use escape_html_entities() from AK/StringLinus Groh
2020-04-28LibMarkdown: Drop MD prefixes and move into "Markdown" namespace :^)Andreas Kling