Skip to content

HTML not rendered #409

Description

@sebelk

Description

HTML Styles are not rendered

Steps to reproduce

  1. Write some line with HTML styles:
<h1 style="color:Tomato;">Hello World</h1>
<p style="color:DodgerBlue;">Lorem ipsum...</p>
<p style="color:MediumSeaGreen;">Ut wisi enim...</p> 
  1. View the results on screen

  2. Either export as styled html or pdf

Expected behavior: [What you expected to happen]

Html styles correct rendered both on screen and on pdf/html files

Actual behavior:
Format not rendered, it's shown as html code

Link to an example: screenshot_20180701_182113

Versions

  • Mark Text: v 0.12.25
  • OS: Fedora 28

Activity

  1. Jocs commented on Jul 2, 2018

    @Jocs
    Member

    There is no description in the GFM standard about whether the style attribute in the tag is present, but according to the Github site, the style style is not displayed, so in the output, the style attribute is filtered out.

  2. sebelk commented on Jul 8, 2018

    @sebelk
    Author

    @Jocs Thanks, but it does not render plain html either, for example:

    <h1>Header 1</h1>
    

    Is just me or is a Mark Text limitation?

    Thanks in advance

  3. Jocs commented on Jul 10, 2018

    @Jocs
    Member

    @sebelk Sorry to reply to you now, in GFM, the html display is divided into html block and raw html. The html block will be previewed in real time, raw html will not.

    html block.

    <h1>
    Header 1
    </h1>

    raw html.

    <h1>Header 1</h1>

    You can ref to GFM standard for more info.

  4. added
    🐛 bugSomething isn't working
    🪲 pri/majorBugs will affect your normal use of Mark Text, causing you unwilling or unable to continue using MT
    on May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🪲 pri/majorBugs will affect your normal use of Mark Text, causing you unwilling or unable to continue using MT🐛 bugSomething isn't working🔭 area/editor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions