Skip to content

Support generating llms-full.txt before MDC plugins #25

@typed-sigterm

Description

@typed-sigterm

In markdown:

取出 $n$ 张定序牌,背面向上打乱后由玩家依次抽取,在此之后,玩家回合顺序为各人抽到的牌的天干顺序。

In llms-full.txt:

取出 [[]{.katex-mathml}[[[]{.strut style="height:0.4306em;"}[n]{.mord.mathnormal}]{.base}]{.katex-html ariaHidden="true"}]{.katex} 张定序牌,背面向上打乱后由玩家依次抽取,在此之后,玩家回合顺序为各人抽到的牌的天干顺序。

Expects katex not to be rendered to HTML / MathML in llms-full.txt.

config (partial):

export default defineNuxtConfig({
  modules: [
    '@nuxt/content',
    'nuxt-llms',
  ],
  mdc: {
    remarkPlugins: {
      'remark-math': {
        src: 'remark-math',
        options: {} satisfies import('remark-math').Options,
      },
    },
    rehypePlugins: {
      'rehype-katex': {
        src: 'rehype-katex',
        options: {
          output: 'mathml',
        } satisfies import('rehype-katex').Options,
      },
    },
  },
  llms: {
    domain: 'https://www.paperchemis.com',
  },
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions