Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing text styles in html #2007

Merged
merged 1 commit into from
Jul 9, 2021
Merged

Add missing text styles in html #2007

merged 1 commit into from
Jul 9, 2021

Conversation

MarcinAman
Copy link
Contributor

No description provided.

@MarcinAman MarcinAman linked an issue Jul 7, 2021 that may be closed by this pull request
@MarcinAman MarcinAman requested a review from kamildoleglo July 7, 2021 16:09
@MarcinAman MarcinAman force-pushed the missing-text-styles branch from 2cfe5ee to 4af8e4c Compare July 7, 2021 16:24
when(styleToApply){
TextStyle.Bold -> b { body() }
TextStyle.Italic -> i { body() }
TextStyle.Strikethrough -> samp { body() }
Copy link
Contributor

Choose a reason for hiding this comment

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

Strikethrough is <strike>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed:
image

I had to make my own tag, since i am not gonna wait for kotlinx.html's release cycle: Kotlin/kotlinx.html#184

@MarcinAman MarcinAman force-pushed the missing-text-styles branch from 4af8e4c to b14f5d7 Compare July 9, 2021 13:37
@MarcinAman MarcinAman merged commit b616e2d into master Jul 9, 2021
@MarcinAman MarcinAman deleted the missing-text-styles branch July 9, 2021 14:38
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.

No styles for dokka base
2 participants