feat(display): improve regulation frontend display format and meta data rendering#4
Open
zhenhuang-tw wants to merge 2 commits into
Open
Conversation
Correct the HTML tag of the regulatory history section to replace <ul> with <ol> . Because historical records have a temporal nature, it is more appropriate to use the semantics of an ordered list.
1. According to current practice, regulation titles are only output as paragraphs rather than titles. 2. Add HTML rendering of modification information.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR improves the frontend output format of the regulation sync plugin to align with the present display requirements of the website.
Changes
modifiedTypeandmodifiedDatecorrectly, pushing them into the output array.<h2>to<p><strong>and applied a specific paragraph format for the meta information (<p><strong>{type}日期:</strong>{date}</p>).<ul>) with an ordered list (<ol>) for the regulation history section.How to Test