Skip to content
Snippets Groups Projects

Make some Headers bold when doing HTML to MFM

Merged Marie requested to merge upd/mfmhtag into develop
All threads resolved!

What does this PR do?

This addresses issue #551 (closed) where it was mentioned that H tags aren't bolded. After checking it turns out H1 only had special characters set around the text while all other H tags were grouped together with span/p.

This simply changes it to make H1 bold with the special characters to stand out while making H2 to H3 also bold while keeping H4 - H6 in span/p as they don't really stand out that much from normal text at that point anymore.

Contribution Guidelines By submitting this merge request, you agree to follow our Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines
  • I have made sure to test this pull request

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • I am very annoyed that we can't do much better than this 😭

    One day I'll have to rewrite the whole mfm parser to make it understand proper markdown, won't I?

  • Marie added 1 commit

    added 1 commit

    • 4a9260a4 - upd: seperate H2/H3 into own case

    Compare with previous version

  • Marie resolved all threads

    resolved all threads

  • dakkar approved this merge request

    approved this merge request

  • Tess K approved this merge request

    approved this merge request

  • merged

  • dakkar mentioned in commit c8c77fab

    mentioned in commit c8c77fab

  • Please register or sign in to reply
    Loading