Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Apr 13, 2021

Closes #3115
Closes #3104

  • Forward attributes from <h1>, <h2>, etc. to CustomHeader
  • Make sure all headers have an anchor (revert to "unknown-anchor" in worst case)
  • Fix header height

@ghost ghost self-requested a review April 13, 2021 18:15
Copy link
Collaborator

@vdonato vdonato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'll want to add an e2e test in the st_markdown script that checks that the styling for really long headers is fine. I'm not sure how hard it would be to take a snapshot of both a heading and something below it, though.

@ghost
Copy link
Author

ghost commented Apr 15, 2021

@vdonato Ok, I added an e2e test to st_markdown which displays a long header and table in a block, then snapshots it. Also replied to your individual comments.

@ghost ghost merged commit d1266cf into streamlit:develop Apr 16, 2021
@ghost ghost deleted the fix-header-styling branch April 16, 2021 18:32
tconkling added a commit that referenced this pull request Apr 19, 2021
* develop:
  Fix Markdown Anchors bugs (#3127)
  Unset fail_on_warning (#3134)
  Remove fail on warning
  Merge pull request #3126 from randyzwitch/docs_test
  Add s4a message to close active modals (#2893)
  Add fail_on_warning to build options
  Docutils 0.16
  Put back Sphinx to 3.0.3
  Modify docs for grammatical error
  Update Changelog to latest updates
  Up version to 0.80.0
  Update change log
  Revert "Merge pull request #3029 from streamlit/fix-1117"
  Merge anchor headers feature branch into develop (#2983)
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HTML is not working in streamlit.markdown in version 0.80.0 Overlap on multiline headers with figures

1 participant