-
-
Notifications
You must be signed in to change notification settings - Fork 30
Provide unlimited abstract length option #88
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
Conversation
for more information, see https://pre-commit.ci
…ent for rss description
|
Thanks for your proposal.
Agreed!
I prefer to keep it as an option to avoid a breaking change for existing installations.
Good move. Maybe when
Are you totally sure thath it's not breaking something? If you take the full content, it's ok and easy-to-go. But if you specify a length, you'll need to manage a valid truncated HTML and it's not so simple. Regarding failing tests, it's on mkdocs-minify-plugin --> jsmin side. I'm monitoring the upstream PR. |
Agreed. I will update shortly.
In my pr, if the length is specified, the Markdown string, instead of HTML, will be used (which is the same as before, as on_page_markdown will not provide html string at all), so it should be fine. |
Great. I'll give it a closer look in the next days. In the meanwhile, could you include the documentation update please? And check if you follow the contributing guidelines. Thanks! |
|
The docs have been updated. |
Codecov Report
@@ Coverage Diff @@
## main #88 +/- ##
==========================================
- Coverage 70.35% 70.22% -0.14%
==========================================
Files 5 5
Lines 307 309 +2
Branches 59 60 +1
==========================================
+ Hits 216 217 +1
Misses 63 63
- Partials 28 29 +1
|
|
Hi @liang2kl, I've just reviewed it deeper and I've got two concerns:
|
|
I don't have much understanding about the standards, but it seems that in your previous implementation, you deal it the same way, generating html content without the main tags, and just embedding the html into xml? |
|
Now deployed as part of the version 0.18.0: |
It is useful to provide an option for users who want to publish the whole article, to be read directly on rss readers.
abstract_chars_counttoNoneabstract_chars_countisNoneon_page_markdowntoon_page_contentto retrieve final html content for rss description