-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat: Add merge included #485
Conversation
71f395f
to
b0231a1
Compare
@@ -171,7 +171,7 @@ const index: MarkdownItPluginCb<Options> = (md, options) => { | |||
} | |||
|
|||
md.renderer.rules.anchor_hidden_desc = function (tokens, index) { | |||
return '<span class="visually-hidden" data-no-index="true">' + escapeHtml(tokens[index].content) + '</span>'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зачем удаляешь полезное?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я их не трогал, это merge с мастера. Еще перепройдусь по всему коду, вдруг мердж еще накосячил где
// The finction reads the files from bottom to top(!). It stops the loop if it does not have anything to swap. | ||
// If the function finds something to process then it restarts the loop because the position of the last element has been moved. | ||
// eslint-disable-next-line no-unmodified-loop-condition | ||
while (input) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Что-то как-то жестко.
Ты тут в цикле несколько раз разбиваешь файл на строки и склеиваешь обратно.
} | ||
|
||
// Null protection for lint mode | ||
if (md && root && path) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вот эту нормализацию вынеси в самый старт препроцессора, зачем это постоянно нормализовывать?
b1629e2
to
c2d3cb3
Compare
0e0c986
to
ce544b8
Compare
No description provided.