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

fix(content): codeblock parse lang should support other meta #691

Merged
merged 1 commit into from
Jan 22, 2021

Conversation

fuxingloh
Copy link
Contributor

@fuxingloh fuxingloh commented Dec 21, 2020

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

I think #621 breaks lang parsing in codeblock when it contains other meta that is not filename. This causes highlightjs not to work as expected. When codeblock contains other meta that is not filename, it should not break lang parsing in utils.parseThematicBlock. Making it difficult to write and use remark plugins that contains meta.

For Reference
Markdown
Currently
Expected

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes (if not applicable, please state why)

When codeblock contains other meta, it should not break lang parsing in utils.parseThematicBlock
@fuxingloh fuxingloh marked this pull request as ready for review December 21, 2020 06:30
fuxingloh added a commit to fuxingloh/vue-horizontal that referenced this pull request Dec 23, 2020
fuxingloh added a commit to fuxingloh/vue-horizontal that referenced this pull request Dec 23, 2020
fuxingloh added a commit to fuxingloh/vue-horizontal that referenced this pull request Dec 23, 2020
fuxingloh added a commit to fuxingloh/vue-horizontal that referenced this pull request Dec 24, 2020
fuxingloh added a commit to fuxingloh/vue-horizontal that referenced this pull request Dec 24, 2020
* Updated README.md

* Fixed vue-horizontal.svg text not a path

* Updated to use remark-code-import-replace

* Removed mock-browser border

* Going to hide filename until nuxt/content#691 is fixed

* Updated limitations with new scrollbar fix

* docs: taxonomy.md

* docs: responsive.md
@atinux atinux merged commit 881f6d4 into nuxt:dev Jan 22, 2021
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.

2 participants